#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=55a49cad13df1b14391708b6700244e49b3d1a3d 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 H4sIANCOcWcAA+08a3PbOJLzWb8Ca0+KVEaibMcZT3lHyXmcx3g3cVy2Z3NTPg+LFiGLMUXyCNK2 dmvmt193AyDBhyR7J8ld1RFViSSw0Wj0Cw100wvvRowW8J8794LISRbffP62BW3v+XP83N57vk2/ d7a26BMf7W19/8327t6z3Wdbe9vP977Z2t5+tr31Ddv6ArQ0Wi4yL2Xsa0z1f7Ft/mWUi3R0FUQj Ht2yZJHN4mint7Gx0TO1gg3ZWx7x1Ms4O/zuOzZN4zn7FQDY0anT6/0iuGAI73jCDx3GPgZhyLJZ INgVZym/S4Ms4xHzJJTEit9e0kyEzXWneZan3HVZME/iNGNJGkQZ9EaTLIijXk91i4XoqSE+v73K g9B3rgG5ekwTIBkSBr/pR9M4nXsZUjGdZ/LxJE65fszTNE5lt+9lnht60bV+9ukH+WC+mCSJ7pwv wuBK9uOsujtLvUjgXM1HQKcLCBT92SIJyineBSIjdvh8yj4kuGZh9/d7DNomwvJ9ZvfZ8AWLkyzx UsEdCXWC31OC2zjlwMNIMC9CKHjICDJlQQSKHk24s9EjyISN2/HYffnc8XzflThsaziM4mGS8ixb DEkswzkHTfGFNSDoSvO5yMaWhHalEFdAeyTdsSUyEIU79ULB25FOvTzMxudpzlsez3iYjK2PM5gH FpvFyGmprpIOqUzIbU1Kv6c4exhHWRqH7IR0HzQCOJXmEyBHaBAQJptFsc9Jv1v5kyyGQRRkw+MV HFm4COJG69kABKzkwhtk01I2FKaqluTKeV2wSFD/lP93HqRgsPyW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tVJgGU7TVr+YJZUJE1sYPUNXl3JAOSGURa/wgnMQNI9M4kLM1cq50mAnwKixrZ1dxgd5UeJX1 dPhyff+rfNlK8+yN8uiUnGphmpnqX8m6TUbVLxqfrIFBpFpvTVWnfhFcO3Ilrqy3b9F8mxIqJRZ6 jqmPgSzS4VE+pxu8EqUsyOhXJBRg5cjWEkc1MBlZNecqPX32r/JNtbJ+Qc6sdc/I/7WoZBXh71VZ lK/8NcRQ7qSrJPCa/vZDImHVjapgIAw8FFen3gyiSZj7nG1UYnJntlFdosr5BDJd46g0klEXXWBE AYnEm3AQGzEKL4II3JCdRkvZUvW0mjTFBobhg8X4lc6aMfottmhInGyyiDZIfftNQGy+ts2qqiMN /dYBptX4JNQmM35nbDRiJktaGPLF4j8Iy7I4DtWReXgvZl7qiNlnnWPN33/a2m3mf3af7XTx/9do tb//dOWJWW8Tsy74dyzwRVT6pf4cCFbxLFEY9qMO+EmVX/R6gmdsGLMoziP4qn8mQcKnXhDq3zxN 8Y3WXk/9MYt/gYHwySxmG1huu8++/Y+Nouc6yOgSLMig/z/Pfj44dd8enbuHH96/PzqnQmiCs6qU 7dPfBcEAG5cjLAWG4FPYO+U1MxvSu89TjWQpLh98qNX7vdfbQMr+t6XXta51rWtd61rXuta1rnWt a13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rX/b+1/ACDUy0kAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"