#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=139d8d94fa497009b56edaf778de3f785bf710da 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 H4sIAO6xO2cAA+08/XPbtpL9WX8Fnt0MqVSibMeOO35Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtr+3h5/b+3vb9Ht7 f58+4dvW1u7+N9u7+9sv919svdwCuO3tF9svvmFbX4CWRstE6iSMfY2p/je2zb+MMpGMJn444uEd ixfpLAp3ehsbG72yVrAhe89DnjgpZ0fffcemSTRnvwAAO/5o9Xo/Cy4YwluO8AKLsU9+ELB05gs2 4Szh94mfpjxkjoSSWPHba5qJsNn2NEuzhNs28+dxlKQsTvwwhd7QTf0o7PVUt1iInhri8btJ5gee dQPI1WOaAMmQMPhNP5pGydxJkYrpPJWP3Sjh+jFPkiiR3Z6TOnbghDf62efv5YP5wo1j3TlfBP5E 9uOsujtNnFDgXM1HQKcNCBT96SL2iylOfJESOzw+ZWcxrlmY/YMeg7aJsPyAmX02fMWiOI2dRHBL Qp3j94TgNj5y4GEomBMiFDxkBJkwPwRFD11ubfQIMmbjdjxmXz63HM+zJQ7TGA7DaBgnPE0XQxLL cM5BUzxhDAi60jwu0rEhoW0pxBXQDkl3bIgURGFPnUDwdqRTJwvS8WWS8ZbHMx7EY+PTDOaBxaYR clqqq6RDKhNyW5PS7ynOHkVhmkQBOyfdB40ATiWZC+QIDQLCZLMw8jjpdyt/4sXQD/10eLqCIwsb QexwPRuAgJVceIdsWsqG3FTVkmw5rw0WCeqf8P/O/AQMlt/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c0N6IZVKrPGDcBI3SunGgZytkXilg6GP92FpO7vyW/SmwqvUp8WX6/tf5Qtx mmfvlFunDFUL08r5/pWs22RUAqPxyUIYRKr1tqzq1C/8G0uuxJZF9y2ab1JWpcBCzzH/MZCVOjzM 5nSNV6CUVRn9ioR8LB/ZWuKoBmVGVs25Sk+f/aN4m7AoYpAza90rJQFbVLKK8LeqLIrXNxtiKLbT VRJ4S38AJJaw6lpVMBAGXjBUp970QzfIPM42KmcEa7ZRXaJK/PgyZ2OpXFKpODrHiAISseNyEBsx Ci+SCLwkO42WUqbqaTVzig0MwwOL8SqdNWP0WmyxJHGyyTzkIPXtNwGxedo2q6qONPRbB5StxiOh NpnxG2OjESuzpIUhXyL+g7AsjaJAHdyHD2LmJJaY/alzrP77X/jnv17W8z+7u3td/P81Wu3vf00c MettYtYF/44JvidMv9Sfg8EqniUKw37QAT9p8ateT/CUDSMWRlkIX/XP2I/51PED/ZsnCb5w3Oup P2byD7AN7s4itoHltgfs23/byHtu/JSu4vwU+v/z4qfDj/b740v76OzDh+NLKoQmOKNK2QH9XRiM rXE5wlBgCD6FbVPeULMhvcI+1UiW4vLAfRq933q9DaTsXy29rnWta13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2/7H9DzZm9VoAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"