#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=dd032537e0899f46df139e8c6109dd4621495bf2 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 H4sIAPrblWYAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S8ib2XtViqmzi0dPT06/pmW5o4d2K0QL+c+deEDnJ4ps/v21Be7G3h7/bL/a26X77 xQv6hautrd0X32zvPt/de7a392Jr65ut7e1n28++YVtfgJZGy4T0Usa+xlD/H9vmX0aZSEfXQTTi 0R1LFnIWRzu9jY2NXlkr2JC94xFPPcnZ4XffsWkaz9kvAMCOPji93s+CC4bwjif80GHsYxCGTM4C wa45S/l9GkjJI+YpKIUVr17RSITNdaeZzFLuuiyYJ3EqWZIGkYSn0UQGcdTr6cdiIXq6i8/vrrMg 9J0bQK5f0wBIhoLBK/NqGqdzTyIV07lUrydxys1rnqZxqh77nvTc0ItuzLtP36sX88UkSczD+SIM rtVzHNU8lqkXCRyr+QrodAGBpl8ukqAY4jgQktjh8yk7TXDOwu7v9xi0TYTl+8zus+FLFicy8VLB HQV1htcpwW184MDDSDAvQih4yQgyZUEEih5NuLPRI8iEjdvx2H313vF831U4bGs4jOJhknIpF0MS y3DOQVN8YQ0IutJ8LuTYUtCuEuIKaI+kO7aEBFG4Uy8UvB3p1MtCOb5IM97yesbDZGx9nME4MFkZ I6eVuio6lDIhtw0p/Z7m7GEcyTQO2RnpPmgEcCrNJkCOMCAgTDaLYp+TfrfyJ1kMgyiQw5MVHFm4 COJG69kABKzkwltk01I25Kaqp+SqcV2wSFD/lP9vFqRgsPyOpws2DX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T7ezKT9GbCq9Tnw5fru9/ VR/EGZ691W6dMlQtTCvn+1eybpNRCYzBpwphEKnR27Kq03MR3DhqJq4qum/RfJuyKgUWeo/5j4Gq 1OFRNqdjvAKlqsroVyQUYPnI1hJHNSgzsmrOVXr67B/F14RFEYMa2eheKQnYopJVhL9VZVF8vtkQ Q7GcrpLAG/oDIImC1ceqgoEw8OChOvRmEE3CzOdso7J3cGYb1SnqxE+gcjaOziWViqNzjCggkXgT DmIjRuEBE4GXZGfQUspUv61mTrGBYfhgMX7lYc0Y/RZbLEmcbDIPOUh9+01AbL6xzaqqIw391g5l q/FJqE1m/MbYaMTKLGlhyJeI/yAsk3Ec6g398EHMvNQRsz91jNV//wv//Nfzev5nd3evi/+/Rqv9 /a9rT8x6m5h1wb9jgt8J053+czBYxbNEYdgPJuAnLX7Z6wku2TBmUZxFcGlukyDhUy8IzT1PU/zg uNfTf8zkH2AbfDKL2QaW2+6zb/9jI39yE0g6ogskPP/v858OPrjvji7cw9P3748uqBCa4KwqZfv0 d2EwtsbpCEuDIfgUlk11cs2G9An71CBZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevav2P7P/undxAAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"