#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0cc50061b34cc8c81f28c7762521bcea199af931 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 H4sIAC1ILmcAA+08a3PbRpL5zF8xK8UF0CFBSZbtFDe0T5Ef0Z0sqSxlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVRJBoKenp1/TM93g0rkRoyX8sxeOH1rx8ps/v+1Ae/n8OX7uvny+S993 X76kT7ja2dl/+c3u/svdZ/v7z+D/Nzu7u892d79hO1+AlkbLROokjH2Nof43tu2/jDKRjKZ+OOLh LYuX6TwK93pbW1u9slawIXvPQ544KWeH333HZkm0YL8AADv6aPV6PwsuGMJbjvACi7FPfhCwdO4L NuUs4XeJn6Y8ZI6Ekljx6jWNRNhse5alWcJtm/mLOEpSFid+mMLd0E39KOz11G2xFD3VxeO308wP POsakKvHNACSIWHwSj+aRcnCSZGK2SKVj90o4foxT5Iokbc9J3XswAmv9bPP38sHi6Ubx/rmYhn4 U3kfR9W308QJBY7VfAR02oBA0Z8uY78Y4tgXKbHD4zN2GuOchdkf9xi0bYTlY2b22fAVi+I0dhLB LQl1htcJwW195MDDUDAnRCh4yAgyYX4Iih663NrqEWTMJu14zL58bjmeZ0scpjEchtEwTniaLock luGCg6Z4whgQdKV5XKQTQ0LbUohroB2S7sQQKYjCnjmB4O1IZ04WpJOLJOMtj+c8iCfGpzmMA5NN I+S0VFdJh1Qm5LYmpd9TnD2MwjSJAnZGug8aAZxKMhfIERoEhMnmYeRx0u9W/sTLoR/66fBkDUeW NoLY4WY2AAFrufAO2bSSDbmpqinZclwbLBLUP+H/nfkJGCy/5cmSzXweeAU3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anwKvVp8dX6/lf5 Qpzm2Tvl1ilD1cK0cr5/Leu2GZXAaHyyEAaRar0tqzrdF/61JWdiy6L7Fs03KatSYKHnmP8YyEod HmYLOsYrUMqqjH5FQj6Wj+yscFSDMiOr5lylp8/+UbxNWBQxyJG17pWSgC0qWUX4W1UWxeubDTEU y+k6CbylHwCJJaw6VhUMhIEHDNWht/3QDTKPs63KHsGab1WnqBI/vszZWCqXVCqOzjGigETsuBzE RozCgyQCL8lOo6WUqXpazZxiA8PwwGK8ys2aMXottliSONlkHnKQ+vabgNg8bZtVVUca+q0dylbj kVCbzPiNsdGIlVnSwpAvEf9BWJZGUaA27sN7MXcSS8z/1DHW//4X/vzXi3r+B666+P9rtNrvf00d Me9tY9YFf8cE3xOmb+rnYLCKZ4XCsB90wE9a/KrXEzxlw4iFURbCpf4a+zGfOX6gv/MkwReOez31 Yyb/ANvg7jxiW1huO2bf/ttWfufaT+kozk/h/n+e/3Tw0X5/dGEfnn74cHRBhdAEZ1QpG9PvwmBs jdMRhgJD8Bksm/KEmg3pFfaZRrISlwfu0+j91uttIWX/aul1rWtd61rXuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rX/j+1/AJKtCu8AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"