#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=784fbb424720025ed08d74b2add768585738505c 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 H4sIAKb8nWYAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0tqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be7G3h7/bL/a26X77 xQv6hautrd0X32zvPt998ezF8+29nW+2tref7Wx/w7a+AC2NlgnppYx9jaH+P7bNv4wykY6ugmjE o1uWLOQsjnZ6GxsbvbJWsCF7xyOeepKzw+++Y9M0nrNfAIAdfXR6vZ8FFwzhHU/4ocPYpyAMmZwF gl1xlvK7NJCSR8xTUAorXr2ikQib604zmaXcdVkwT+JUsiQNIglPo4kM4qjX04/FQvR0F5/fXmVB 6DvXgFy/pgGQDAWDV+bVNE7nnkQqpnOpXk/ilJvXPE3jVD32Pem5oRddm3efv1cv5otJkpiH80UY XKnnOKp5LFMvEjhW8xXQ6QICTb9cJEExxPtASGKHz6fsJME5C7u/32PQNhGW7zO7z4YvWZzIxEsF dxTUKV6nBLfxkQMPI8G8CKHgJSPIlAURKHo04c5GjyATNm7HY/fVe8fzfVfhsK3hMIqHScqlXAxJ LMM5B03xhTUg6ErzuZBjS0G7SogroD2S7tgSEkThTr1Q8HakUy8L5fg8zXjL6xkPk7H1aQbjwGRl jJxW6qroUMqE3Dak9Huas4dxJNM4ZKek+6ARwKk0mwA5woCAMNksin1O+t3Kn2QxDKJADo9XcGTh IogbrWcDELCSC2+RTUvZkJuqnpKrxnXBIkH9U/6/WZCCwfJbni7YNOChX3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mCaVDhGzjB6jqcm4oL6RTiTV+EE7iRindOFCjNRKvtGEM8DxMtrMrP0VvKrxOfTp8ub7/ VX0QZ3j2Vrt1ylC1MK2c71/Juk1GJTAGnyqEQaRGb8uqTs9FcO2ombiq6L5F823KqhRY6D3mPwaq UodH2ZyO8QqUqiqjX5FQgOUjW0sc1aDMyKo5V+nps38UXxMWRQxqZKN7pSRgi0pWEf5WlUXx+WZD DMVyukoCb+gPgCQKVh+rCgbCwIOH6tCbQTQJM5+zjcrewZltVKeoEz+Bytk4OpdUKo7OMaKAROJN OIiNGIUHTARekp1BSylT/baaOcUGhuGDxfiVhzVj9FtssSRxssk85CD17TcBsfnGNquqjjT0WzuU rcYnoTaZ8RtjoxErs6SFIV8i/oOwTMZxqDf0w3sx81JHzP7UMVb//S/881/P6/mf3b1nXfz/NVrt 739deWLW28SsC/4dE/xOmO70n4PBKp4lCsN+MAE/afHLXk9wyYYxi+IsgktzmwQJn3pBaO55muIH x72e/mMm/wDb4JNZzDaw3HafffsfG/mT60DSEV0g4fl/n/108NF9d3TuHp58+HB0ToXQBGdVKdun vwuDsTVOR1gaDMGnsGyqk2s2pE/YpwbJUlw+uE+r91uvt4GU/aul17Wuda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rX/h3b/wG9vPs1AHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"