#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=5a67993f1bc87814fbf771589764951c4fb47479 name=$(basename $0) # e.g. hello-xshar.xshar default_dir=/tmp/$name.$$ # User can override this, and then _build/oils.sh can use SKIP_REBUILD to make # it faster. Multiple runs without compiling. export XSHAR_DIR=${XSHAR_DIR:-$default_dir} change_dir() { mkdir -p "$XSHAR_DIR" cd "$XSHAR_DIR" } extract_data() { base64 -d <<'XSHAR_DATA' | tar -x -z H4sIAIv/N2cAA+08/XPbtpL9WX8Fnt0MqVSibMeOO35Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtr+3h5/b+3vb9Ht7 f58+4dvW1u7+N9u7+9t7+/v7u3s732xtb7/Y2fuGbX0BWhotE6mTMPY1pvrf2Db/MspEMpr44YiH dyxepLMo3OltbGz0ylrBhuw9D3nipJwdffcdmybRnP0CAOz4o9Xr/Sy4YAhvOcILLMY++UHA0pkv 2ISzhN8nfprykDkSSmLFb69pJsJm29MszRJu28yfx1GSsjjxwxR6Qzf1o7DXU91iIXpqiMfvJpkf eNYNIFePaQIkQ8LgN/1oGiVzJ0UqpvNUPnajhOvHPEmiRHZ7TurYgRPe6Gefv5cP5gs3jnXnfBH4 E9mPs+ruNHFCgXM1HwGdNiBQ9KeL2C+mOPFFSuzw+JSdxbhmYfYPegzaJsLyA2b22fAVi+I0dhLB LQl1jt8Tgtv4yIGHoWBOiFDwkBFkwvwQFD10ubXRI8iYjdvxmH353HI8z5Y4TGM4DKNhnPA0XQxJ LMM5B03xhDEg6ErzuEjHhoS2pRBXQDsk3bEhUhCFPXUCwduRTp0sSMeXScZbHs94EI+NTzOYBxab Rshpqa6SDqlMyG1NSr+nOHsUhWkSBeycdB80AjiVZC6QIzQICJPNwsjjpN+t/IkXQz/00+HpCo4s bASxw/VsAAJWcuEdsmkpG3JTVUuy5bw2WCSof8L/O/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InuY1UWEa TNGmv5onlA4RaRs/QFWXc0N6IZVKrPGDcBI3SunGgZytkXilg6GP92FpO7vyW/SmwqvUp8WX6/tf 5QtxmmfvlFunDFUL08r5/pWs22RUAqPxyUIYRKr1tqzq1C/8G0uuxJZF9y2ab1JWpcBCzzH/MZCV OjzM5nSNV6CUVRn9ioR8LB/ZWuKoBmVGVs25Sk+f/aN4m7AoYpAza90rJQFbVLKK8LeqLIrXNxti KLbTVRJ4S38AJJaw6lpVMBAGXjBUp970QzfIPM42KmcEa7ZRXaJK/PgyZ2OpXFKpODrHiAISseNy EBsxCi+SCLwkO42WUqbqaTVzig0MwwOL8SqdNWP0WmyxJHGyyTzkIPXtNwGxedo2q6qONPRbB5St xiOhNpnxG2OjESuzpIUhXyL+g7AsjaJAHdyHD2LmJJaY/alzrP77X/jnv17W8z+7e/td/P81Wu3v f00cMettYtYF/44JvidMv9Sfg8EqniUKw37QAT9p8ateT/CUDSMWRlkIX/XP2I/51PED/ZsnCb5w 3OupP2byD7AN7s4itoHltgfs23/byHtu/JSu4vwU+v/z4qfDj/b740v76OzDh+NLKoQmOKNK2QH9 XRiMrXE5wlBgCD6FbVPeULMhvcI+1UiW4vLAfRq933q9DaTsXy29rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2/7H9D6700tIAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"