#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=7a1017d742749ee86bebd9587d4c09c03d51dd1d 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 H4sIAO8KNGcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799X23tbW3s727jdb29svtra/YVtfgJZGy0TqJIx9jan+N7bNv4wykYwmfjji 4R2LF+ksCnd6GxsbvbJWsCH7wEOeOClnh999x6ZJNGe/AAA7Ord6vZ8FFwzhLUd4gcXYJz8IWDrz BZtwlvD7xE9THjJHQkms+O0NzUTYbHuapVnCbZv58zhKUhYnfphCb+imfhT2eqpbLERPDfH43STz A8+6AeTqMU2AZEgY/KYfTaNk7qRIxXSeysdulHD9mCdJlMhuz0kdO3DCG/3s8/fywXzhxrHunC8C fyL7cVbdnSZOKHCu5iOg0wYEiv50EfvFFMe+SIkdHp+y0xjXLMz+fo9B20RYvs/MPhu+ZlGcxk4i uCWhzvB7QnAb5xx4GArmhAgFDxlBJswPQdFDl1sbPYKM2bgdj9mXzy3H82yJwzSGwzAaxglP08WQ xDKcc9AUTxgDgq40j4t0bEhoWwpxBbRD0h0bIgVR2FMnELwd6dTJgnR8mWS85fGMB/HY+DSDeWCx aYScluoq6ZDKhNzWpPR7irOHUZgmUcDOSPdBI4BTSeYCOUKDgDDZLIw8Tvrdyp94MfRDPx2erODI wkYQO1zPBiBgJRfeI5uWsiE3VbUkW85rg0WC+if8vzM/AYPldzxZs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