#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f6f7750b774f60983920d9ffa19442dba58d436c 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 H4sIAGanOmcAA+08a3PbRpL5zF8xK8UF0CFBPe2UNrRPkR/RnSypLGV9KZ2CAoGhCAsEcBhAEncr +e3X3TODN0lpE3uv7jBVNslBT09Pv6ZnuqGFcytGC/jPnjt+aMWLb/78tgXt5f4+fm6/3N+m39sv X9InfNva2nv5zfbey+0X+zu7e1u732xtb+9uvfyGbX0BWhotE6mTMPY1pvrf2Db/MspEMpr44YiH dyxepLMo3OltbGz0ylrBhuw9D3nipJwdffcdmybRnP0CAOz4o9Xr/Sy4YAhvOcILLMY++UHA0pkv 2ISzhN8nfprykDkSSmLFb69pJsJm29MszRJu28yfx1GSsjjxwxR6Qzf1o7DXU91iIXpqiMfvJpkf eNYNIFePaQIkQ8LgN/1oGiVzJ0UqpvNUPnajhOvHPEmiRHZ7TurYgRPe6Gefv5cP5gs3jnXnfBH4 E9mPs+ruNHFCgXM1HwGdNiBQ9KeL2C+mOPFFSuzw+JSdxbhmYfYPegzaJsLyA2b22fAVi+I0dhLB LQl1jt8Tgtv4yIGHoWBOiFDwkBFkwvwQFD10ubXRI8iYjdvxmH353HI8z5Y4TGM4DKNhnPA0XQxJ LMM5B03xhDEg6ErzuEjHhoS2pRBXQDsk3bEhUhCFPXUCwduRTp0sSMeXScZbHs94EI+NTzOYBxab Rshpqa6SDqlMyG1NSr+nOHsUhWkSBeycdB80AjiVZC6QIzQICJPNwsjjpN+t/IkXQz/00+HpCo4s bASxw/VsAAJWcuEdsmkpG3JTVUuy5bw2WCSof8L/O/MTMFh+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qcG9ILqVRijR+Ek7hRSjcO5GyNxCsdDH28D0vb2ZXfojcVXqU+Lb5c3/8q X4jTPHun3DplqFqYVs73r2TdJqMSGI1PFsIgUq23ZVWnfuHfWHIltiy6b9F8k7IqBRZ6jvmPgazU 4WE2p2u8AqWsyuhXJORj+cjWEkc1KDOyas5VevrsH8XbhEURg5xZ614pCdiiklWEv1VlUby+2RBD sZ2uksBb+gMgsYRV16qCgTDwgqE69aYfukHmcbZROSNYs43qElXix5c5G0vlkkrF0TlGFJCIHZeD 2IhReJFE4CXZabSUMlVPq5lTbGAYHliMV+msGaPXYosliZNN5iEHqW+/CYjN07ZZVXWkod86oGw1 Hgm1yYzfGBuNWJklLQz5EvEfhGVpFAXq4D58EDMnscTsT51j9d//wj//9aKe/9nb2+7i/6/Ran// a+KIWW8Tsy74d0zwPWH6pf4cDFbxLFEY9oMO+EmLX/V6gqdsGLEwykL4qn/Gfsynjh/o3zxJ8IXj Xk/9MZN/gG1wdxaxDSy3PWDf/ttG3nPjp3QV56fQ/58XPx1+tN8fX9pHZx8+HF9SITTBGVXKDujv wmBsjcsRhgJD8Clsm/KGmg3pFfapRrIUlwfu0+j91uttIGX/aul1rWtd61rXuta1rnWta13rWte6 1rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rX/j+1/AD9xrcMAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"