#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=d509313cf4415f881cd88f825277d8f1e7504b6d 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 H4sIAMY0PWcAA+08/VPjRrL52X/FHGRL8saWMcuGFBfvPsJ+hPdYoIDcvhRHVEIaYy2ypKeRAN9V 8re/7p4ZfduGS3bvrk5TtWt99PT09Nf0TLdYOLditID/7Lnjh1a8+OqPb1vQdl++xN/x7ssx3Y93 d+kXrra2dna/Gu/sjne3X2yPd3a+2hqPX2ztfsW2PgMtjZaJ1EkY+xJD/Su2zT+NMpGMrv1wxMM7 Fi/SWRRu9zY2NnplrWBD9p6HPHFSzg6++YZNk2jOfgYAdnhm9Xo/CS4YwluO8AKLsY9+ELB05gt2 zVnC7xM/TXnIHAklseLVaxqJsNn2NEuzhNs28+dxlKQsTvwwhaehm/pR2Oupx2IheqqLx++uMz/w rBtArl7TAEiGhMEr/WoaJXMnRSqm81S+dqOE69c8SaJEPvac1LEDJ7zR7z59J1/MF24c64fzReBf y+c4qn6cJk4ocKzmK6DTBgSK/nQR+8UQR75IiR0en7KTGOcszP5ej0HbRFi+x8w+G75iUZzGTiK4 JaFO8TohuI0zDjwMBXNChIKXjCAT5oeg6KHLrY0eQcZs0o7H7Mv3luN5tsRhGsNhGA3jhKfpYkhi Gc45aIonjAFBV5rHRToxJLQthbgC2iHpTgyRgijsqRMI3o506mRBOrlIMt7yesaDeGJ8nME4MNk0 Qk5LdZV0SGVCbmtS+j3F2YMoTJMoYKek+6ARwKkkc4EcoUFAmGwWRh4n/W7lT7wY+qGfDo9XcGRh I4gdrmcDELCSC++QTUvZkJuqmpItx7XBIkH9E/5/mZ+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1UWEaTNGmv5onlA4RaRs/QFWXc0N6IZVKrPGDcBI3SunGgRytkXilHaCP52FpO7vyU/SmwqvU p8WX6/uf5QdxmmfvlFunDFUL08r5/pWs22RUAqPxyUIYRKr1tqzq9Fz4N5aciS2L7ls036SsSoGF 3mP+YyArdXiYzekYr0ApqzL6FQn5WD6ytcRRDcqMrJpzlZ4++3vxNWFRxCBH1rpXSgK2qGQV4a9V WRSfbzbEUCynqyTwlv4ASCxh1bGqYCAMPEmoDr3ph26QeZxtVDYD1myjOkWV+PFlzsZSuaRScXSO EQUkYsflIDZiFJ4YEXhJdhotpUzV22rmFBsYhgcW41Ue1ozRa7HFksTJJvOQg9S33wTE5mnbrKo6 0tBv7VC2Go+E2mTGr4yNRqzMkhaGfI74D8KyNIoCtUMfPoiZk1hi9oeOsfrvf+Gf//q2nv/Z2Rl3 8f+XaLW//3XtiFlvE7Mu+HdM8DthulN/DgareJYoDPteB/ykxa96PcFTNoxYGGUhXOrb2I/51PED fc+TBD847vXUHzP5O9gGd2cR28By2z329X9t5E9u/JTO3PwUnv/v+Y/7Z/b7wwv74OTDh8MLKoQm OKNK2R79XRiMrXE6wlBgCD6FZVMeRbMhfcI+1UiW4vLAfRq9X3u9DaTsny29rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2n9j+H1iS0oQAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"