#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=e8f5fcdd8747616c274f6ec3f1568e5bc9e1f724 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 H4sIAN4tQWcAA+08a3PbRpL5zF8xK8UF0CFBSZYdFze0T5Ef0Z0tqyxlfSkdgwKBoQgLBHAYUBJ3 K/nt190zA2BAkJQudrbuFlNlkQR6enr63Y2Bl961GJyenP77kSsWk6vMS2dOuvzmi449GM8OD+kT Rv3z6cHB02/2D78/2Ds4ePb06bNv9vafIDjb+7JkNI+FyL2MsW+yJMk3wW27/3907OzsdJaNOtDB W9MsmTPXnS7yRcZdl4XzNMlylmZhnMPV2M/DJO5IsMkijAINEYfxZ8+NwknlnlNc1FBRctVjxx/e n528e/3x3P3b0ceTo9OL807HZSO82enssosPrz4MmZglC8A+8244C3jK44DHfsgFuw3zGdx1J2Hs ZcvOx5/fvT53z36B+RYtOqBF+9ki4qKfLh0xszqdTsCn7BRvvMXd2tmiO+wwGDHMyxYObAl/wTc/ mc95nNvWWx7zzMt5wCZL9khY7BHwJfbmwJVuAe2JIML9ZUCKbRFf8Q9dt0ow31fkVmDcbBHnIaDL ucgBwuoRtDFg42J0aQ0G86WfpgM1wxo3gM69PAvvRqu8VVTsMlyUwfbSMOJZR84JY9oSMo9owisW 3SM2J8B323IlX0lh5PYeiUGeebGIgD9OfpcjcwpkXeYJNh12qpuABS6jMOaOACpTu8umScbwAgtj Nh1LEtOMT8M7pMW94jGtNHgkHNq7sQJBJ4s8XeSEWU38jlnER1b5PbPGUs4ObcJWs0wGWrBcPwkj 0Qey+os4vKsJA7dgXgF9jkI/zEE6KNqBmN2CYkk5SS72mFbNmr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HLxekI6UOoxdOeYbzgW+bcKwstDiPhgwZSZXkcqZrUKoc1JW9h+h11EAut9z6O R4Ibqaicyn7YmodacrIRC/D4NIcaiB3IoKCaKvjcb3M1UK6s9kg/GvwfXTfcHz5WaPJ+RUdwrBEi tSNWZRG5NI1ErazwyYUOhuPyGQk9zDCfYuwy+ypKJlD8QRneVVmt/OpHIH/6XkAjOTW3F6x6PYK6 v9MzxPAgj0cLbXB4cmcPsQTcfg1ec3clKaLIIve63haJiXUfuhblMUIXODdR/TBbVLqDlrbWGtW7 EzV73J6/qVa2kcjKftEbfP5ZvDQRBHK5Pvvl6D/O3bOji5/U7wAq8crrE/ItBvDqaZIu8H92CV4a yEmx12WIhZU0exSZVMmztopw25omCZ76lFPNqhJB20OHX2ME/CZPkkj9twr9OzHzMkfMvugam9// 3ds7/P5Z7fnf4cF++/7vnzJq7/9OPDHr7OL/uoXvMeHBYPqlXgfbpdjTqDDsB/0Ej3odLzodyPZY P2Fxsojhq/6ZhimfemGkf/MswxPGnY56mekfYPbcnyVsB9stQ/btv+0UV67CnP6jlDCH6/95/tPR R/ftyYV7/OH9+5MLaoQRnGVSNqT3wvBJGG5HWAoMwadhHMj/ioj16eD6VCNZiytIYm51fut0dpCy f7b02tGOdrSjHe1oRzva0Y52tKMd7WhHO9rRjna0ox3taEc72tGOdrSjHe1oRzva0Y52tKMd7WjH v+L4H6cNuIYAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"