#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=e98befeef7a73a0ed275e323727b8fa313fa8ba8 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 H4sIAIkZHWcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jUzk0CVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93Xu7t7u8/3/lmZ3f32c6Lb9jOF6Cl0TKROgljX2Oq/41t+y+jTCSjKz8c 8fCWxct0HoV7va2trV5ZK9iQvechT5yUs8PvvmOzJFqwXwCAHX20er2fBRcM4S1HeIHF2Cc/CFg6 9wW74izhd4mfpjxkjoSSWPHba5qJsNn2LEuzhNs28xdxlKQsTvwwhd7QTf0o7PVUt1iKnhri8dur zA886xqQq8c0AZIhYfCbfjSLkoWTIhWzRSofu1HC9WOeJFEiuz0ndezACa/1s8/fyweLpRvHunOx DPwr2Y+z6u40cUKBczUfAZ02IFD0p8vYL6Y49kVK7PD4jJ3GuGZh9sc9Bm0bYfmYmX02fMWiOI2d RHBLQp3h94Tgtj5y4GEomBMiFDxkBJkwPwRFD11ubfUIMmaTdjxmXz63HM+zJQ7TGA7DaBgnPE2X QxLLcMFBUzxhDAi60jwu0okhoW0pxDXQDkl3YogURGHPnEDwdqQzJwvSyUWS8ZbHcx7EE+PTHOaB xaYRclqqq6RDKhNyW5PS7ynOHkZhmkQBOyPdB40ATiWZC+QIDQLCZPMw8jjpdyt/4uXQD/10eLKG I0sbQexwMxuAgLVceIdsWsmG3FTVkmw5rw0WC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ItI2foCqruaG9EIqlVjjB+EkbpTSjQM5WyPxSgdDH+/D0nZ25bfoTYVXqU+Lr9b3v8oX 4jTP3im3ThmqFqaV8/1rWbfNqARG45OFMIhU621Z1alf+NeWXIkti+5bNN+krEqBhZ5j/mMgK3V4 mC3oGq9AKasy+hUJ+Vg+srPCUQ3KjKyac5WePvtH8TZhUcQgZ9a6V0oCtqhkFeFvVVkUr282xFBs p+sk8Jb+AEgsYdW1qmAgDLxgqE697YdukHmcbVXOCNZ8q7pElfjxZc7GUrmkUnF0jhEFJGLH5SA2 YhReJBF4SXYaLaVM1dNq5hQbGIYHFuNVOmvG6LXYYkniZJN5yEHq228CYvO0bVZVHWnotw4oW41H Qm0y4zfGRiNWZkkLQ75E/AdhWRpFgTq4D+/F3EksMf9T51j/97/wz3+9qOd/9vd3uvj/a7Ta3/+6 csS8t41ZF/w7JvieMP1Sfw4Gq3hWKAz7QQf8pMWvej3BUzaMWBhlIXzVP2M/5jPHD/RvniT4wnGv p/6YyT/ANrg7j9gWltuO2bf/tpX3XPspXcX5KfT/5/lPBx/t90cX9uHphw9HF1QITXBGlbIx/V0Y jK1xOcJQYAg+g21T3lCzIb3CPtNIVuLywH0avd96vS2k7F8tva51rWtd61rXuta1rnWta13rWte6 1rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte69v+x/Q/1/hcnAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"