#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=1d04d709515db25a4cd95e00f5aae09e0e2f0c15 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 H4sIAKDlm2YAA+08a3PbRpL5zF8xK8UF0CFBSZbllDa0T5Ef0Z0tqSRlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S8ib2XtViqmzi0dPT06/pmW5o4d2K0QL+c+deEDnJ4ps/v21Be/H8Of5uv3i+Tffb L17QL1xtbe2++GZ7d29378XezvPdvW+2tref7ex9w7a+AC2NlgnppYx9jaH+P7bNv4wykY6ug2jE ozuWLOQsjnZ6GxsbvbJWsCF7xyOeepKzw+++Y9M0nrNfAIAdnTm93s+CC4bwjif80GHsYxCGTM4C wa45S/l9GkjJI+YpKIUVr17RSITNdaeZzFLuuiyYJ3EqWZIGkYSn0UQGcdTr6cdiIXq6i8/vrrMg 9J0bQK5f0wBIhoLBK/NqGqdzTyIV07lUrydxys1rnqZxqh77nvTc0ItuzLtP36sX88UkSczD+SIM rtVzHNU8lqkXCRyr+QrodAGBpl8ukqAY4n0gJLHD51N2kuCchd3f7zFomwjL95ndZ8OXLE5k4qWC OwrqFK9Tgts448DDSDAvQih4yQgyZUEEih5NuLPRI8iEjdvx2H313vF831U4bGs4jOJhknIpF0MS y3DOQVN8YQ0IutJ8LuTYUtCuEuIKaI+kO7aEBFG4Uy8UvB3p1MtCOb5IM97yesbDZGx9nME4MFkZ I6eVuio6lDIhtw0p/Z7m7GEcyTQO2SnpPmgEcCrNJkCOMCAgTDaLYp+TfrfyJ1kMgyiQw+MVHFm4 COJG69kABKzkwltk01I25Kaqp+SqcV2wSFD/lP9vFqRgsP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OM6a/mCaVDhGzjB6jqcm4oL6RTiTV+EE7iRindOFCjNRKvtGEM8DxMtrMrP0VvKrxOfTp8ub7/ VX0QZ3j2Vrt1ylC1MK2c71/Juk1GJTAGnyqEQaRGb8uqTs9FcOOombiq6L5F823KqhRY6D3mPwaq UodH2ZyO8QqUqiqjX5FQgOUjW0sc1aDMyKo5V+nps38UXxMWRQxqZKN7pSRgi0pWEf5WlUXx+WZD DMVyukoCb+gPgCQKVh+rCgbCwIOH6tCbQTQJM5+zjcrewZltVKeoEz+Bytk4OpdUKo7OMaKAROJN OIiNGIUHTARekp1BSylT/baaOcUGhuGDxfiVhzVj9FtssSRxssk85CD17TcBsfnGNquqjjT0WzuU rcYnoTaZ8RtjoxErs6SFIV8i/oOwTMZxqDf0wwcx81JHzP7UMVb//S/881979fzP7t5WF/9/jVb7 +1/Xnpj1NjHrgn/HBL8Tpjv952CwimeJwrAfTMBPWvyy1xNcsmHMojiL4NLcJkHCp14QmnuepvjB ca+n/5jJP8A2+GQWsw0st91n3/7HRv7kJpB0RBdIeP7f5z8dnLnvji7cw5MPH44uqBCa4KwqZfv0 d2EwtsbpCEuDIfgUlk11cs2G9An71CBZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevav2P7P5jCqpAAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"