#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=3ed408519f53d1dc1ba196a7fa2199085e3694d9 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 H4sIAHJgO2cAA+08/VPjxpL52X/FPMiW5I0tA8uyKV68e4T9CHcsUEDeXoojKlkaYy2ypNNIgN+r 5G+/7p4ZfduGl+y+qztNFdiSenp6+mt6plteOLditIB/9tzxQytefPPnty1or16+xM/tVy+36Xr7 1Sv6hG9bW7uvvtnefbW9t7cHl3vfbG1vv9je/oZtfQFaGi0TqZMw9jWG+t/YNv8yykQymvjhiId3 LF6ksyjc6W1sbPTKWsGG7AMPeeKknB1+9x2bJtGc/QIA7Ojc6vV+FlwwhLcc4QUWY5/8IGDpzBds wlnC7xM/TXnIHAklseK3NzQSYbPtaZZmCbdt5s/jKElZnPhhCndDN/WjsNdTt8VC9FQXj99NMj/w rBtArh7TAEiGhMFv+tE0SuZOilRM56l87EYJ1495kkSJvO05qWMHTnijn33+Xj6YL9w41jfni8Cf yPs4qr6dJk4ocKzmI6DTBgSK/nQR+8UQx75IiR0en7LTGOcszP5+j0HbRFi+z8w+G75mUZzGTiK4 JaHO8HtCcBvnHHgYCuaECAUPGUEmzA9B0UOXWxs9gozZuB2P2ZfPLcfzbInDNIbDMBrGCU/TxZDE Mpxz0BRPGAOCrjSPi3RsSGhbCnEFtEPSHRsiBVHYUycQvB3p1MmCdHyZZLzl8YwH8dj4NINxYLJp hJyW6irpkMqE3Nak9HuKs4dRmCZRwM5I90EjgFNJ5gI5QoOAMNksjDxO+t3Kn3gx9EM/HZ6s4MjC RhA7XM8GIGAlF94jm5ayITdVNSVbjmuDRYL6J/y/Mz8B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