#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=725557fda6cc4abd0d4237297c22127b4150a871 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 H4sIAP2aL2cAA+08/XPbNrL9WX8Fzm6GVCpR/mw6vip5rvNRv+fYnti9vI7P5VAkZDGmSD6CtK27 af/2t7sA+C3Jvja5mztiJpEELhaL/cICu/TCuRWjBfxnzx0/tOLFV39824L2Yn8fP7df7G/T7+0X L+gTvm1t7b34anvvxfbui+39nd2tr7a2t3e39r9iW5+BlkbLROokjH2Jqf4V2+afRplIRhM/HPHw jsWLdBaFO72NjY1eWSvYkL3jIU+clLOjb75h0ySas58BgB1/sHq9nwQXDOEtR3iBxdhHPwhYOvMF m3CW8PvET1MeMkdCSaz47RXNRNhse5qlWcJtm/nzOEpSFid+mEJv6KZ+FPZ6qlssRE8N8fjdJPMD z7oB5OoxTYBkSBj8ph9No2TupEjFdJ7Kx26UcP2YJ0mUyG7PSR07cMIb/ezTd/LBfOHGse6cLwJ/ IvtxVt2dJk4ocK7mI6DTBgSK/nQR+8UUJ75IiR0en7KzGNcszP5Bj0HbRFh+wMw+G75kUZzGTiK4 JaHO8XtCcBsfOPAwFMwJEQoeMoJMmB+CoocutzZ6BBmzcTsesy+fW47n2RKHaQyHYTSME56miyGJ ZTjnoCmeMAYEXWkeF+nYkNC2FOIKaIekOzZECqKwp04geDvSqZMF6fgyyXjL4xkP4rHxcQbzwGLT CDkt1VXSIZUJua1J6fcUZ4+iME2igJ2T7oNGAKeSzAVyhAYBYbJZGHmc9LuVP/Fi6Id+OjxdwZGF jSB2uJ4NQMBKLrxFNi1lQ26qakm2nNcGiwT1T/j/ZX4CB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su5Ib2QSiXW+EE4iRuldONAztZIvNLB0Mf7sLSdXfktelPhVerT4sv1/c/yhTjN s7fKrVOGqoVp5Xz/StZtMiqB0fhkIQwi1XpbVnXqF/6NJVdiy6L7Fs03KatSYKHnmP8YyEodHmZz usYrUMqqjH5FQj6Wj2wtcVSDMiOr5lylp8/+XrxNWBQxyJm17pWSgC0qWUX4a1UWxeubDTEU2+kq CbyhPwASS1h1rSoYCAMvGKpTb/qhG2QeZxuVM4I126guUSV+fJmzsVQuqVQcnWNEAYnYcTmIjRiF F0kEXpKdRkspU/W0mjnFBobhgcV4lc6aMXottliSONlkHnKQ+vabgNg8bZtVVUca+q0DylbjkVCb zPiVsdGIlVnSwpDPEf9BWJZGUaAO7sMHMXMSS8z+0DlW//0v/PNf39bzP3u7L7r4/0u02t//mjhi 1tvErAv+HRN8T5h+qT8Hg1U8SxSGfa8DftLil72e4CkbRiyMshC+6p+xH/Op4wf6N08SfOG411N/ zOTvYBvcnUVsA8ttD9jX/7WR99z4KV3F+Sn0/+/Fj4cf7HfHl/bR2fv3x5dUCE1wRpWyA/q7MBhb 43KEocAQfArbpryhZkN6hX2qkSzF5YH7NHq/9nobSNk/W3pd61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWude0/sf0/GkfsqQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"