#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=e7e02b55c8e13873782ba58e2f0e5b8693a594df 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 H4sIAOrYhmcAA+08a3PbOJLzWb8Ca0+KVEai/JxMeUfJeZzHeDdxXLZnc1M+D4sWIYsxRfII0rZ2 a+a3X3cDIMGHJGcnyV3VEVWJJLDRaPQLDXTTC+9WjBbwnzv3gshJFt98/rYF7dn+Pn5uP9vfpt87 W1v0iY+ebX3/zfbes73t/f29nW14vr29u7X9Ddv6ArQ0Wi4yL2Xsa0z1f7Ft/mWUi3R0HUQjHt2x ZJHN4mint7Gx0TO1gg3ZGx7x1Ms4O/ruOzZN4zn7FQDY8ZnT6/0iuGAI73jCDx3GPgRhyLJZINg1 Zym/T4Ms4xHzJJTEit9e0EyEzXWneZan3HVZME/iNGNJGkQZ9EaTLIijXk91i4XoqSE+v7vOg9B3 bgC5ekwTIBkSBr/pR9M4nXsZUjGdZ/LxJE65fszTNE5lt+9lnht60Y1+9vEH+WC+mCSJ7pwvwuBa 9uOsujtLvUjgXM1HQKcLCBT92SIJyineBiIjdvh8yt4nuGZh9w96DNomwvIDZvfZ8DmLkyzxUsEd CXWK31OC2zjjwMNIMC9CKHjICDJlQQSKHk24s9EjyISN2/HYffnc8XzflThsaziM4mGS8ixbDEks wzkHTfGFNSDoSvO5yMaWhHalEFdAeyTdsSUyEIU79ULB25FOvTzMxhdpzlsez3iYjK0PM5gHFpvF yGmprpIOqUzIbU1Kv6c4exRHWRqH7JR0HzQCOJXmEyBHaBAQJptFsc9Jv1v5kyyGQRRkw5MVHFm4 COJG69kABKzkwmtk01I2FKaqluTKeV2wSF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2QyiLW+EE4iRtGpnEgZ2vkXOkwE+BVWNbOruICvanwKuvp 8OX6/lf5spXm2Wvl0Sk51cI0M9W/knWbjKpfND5ZA4NItd6aqk79Irhx5EpcWW/fovk2JVRKLPQc Ux8DWaTDo3xON3glSlmQ0a9IKMDKka0ljmpgMrJqzlV6+uxf5ZtqZf2CnFnrnpH/a1HJKsLfq7Io X/lriKHcSVdJ4BX97YdEwqobVcFAGHgork69GUSTMPc526jE5M5so7pElfMJZLrGUWkkoy66wIgC Eok34SA2YhReBBG4ITuNlrKl6mk1aYoNDMMHi/ErnTVj9Fts0ZA42WQRbZD69puA2Hxtm1VVRxr6 rQNMq/FJqE1m/M7YaMRMlrQw5IvFfxCWZXEcqiPz8EHMvNQRs886x5q//7S118z/7O3sdvH/12i1 v/907YlZbxOzLvh3LPBFVPql/hwIVvEsURj2ow74SZWf93qCZ2wYsyjOI/iqfyZBwqdeEOrfPE3x jdZeT/0xi3+BgfDJLGYbWG57wL79j42i5ybI6BIsyKD/P89/Pjxz3xxfuEfv3707vqBCaIKzqpQd 0N8FwQAblyMsBYbgU9g75TUzG9K7z1ONZCkuH3yo1fu919tAyv63pde1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWtf9v7X8A0b1vMQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"