#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b5e15f3a826435e700abe86ff6e48cad1e7baa0b 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 H4sIACszdGcAA+08a3PbOJLzWb8Ca0+KVEai/MpkyjtKzuM8xruO44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaM+fPcPP7efPtun3 ztYWfeKj51vff7O993z32dbu9u42PN/e3nm++w3b+gK0NFouMi9l7GtM9X+xbf5llIt0dBVEIx7d smSRzeJop7exsdEztYIN2Vse8dTLODv87js2TeM5+xUA2NEHp9f7RXDBEN7xhB86jH0MwpBls0Cw K85SfpcGWcYj5kkoiRW/vaSZCJvrTvMsT7nrsmCexGnGkjSIMuiNJlkQR72e6hYL0VNDfH57lQeh 71wDcvWYJkAyJAx+04+mcTr3MqRiOs/k40mccv2Yp2mcym7fyzw39KJr/ezTD/LBfDFJEt05X4TB lezHWXV3lnqRwLmaj4BOFxAo+rNFEpRTHAciI3b4fMreJ7hmYff3ewzaJsLyfWb32fAFi5Ms8VLB HQl1it9Tgtv4wIGHkWBehFDwkBFkyoIIFD2acGejR5AJG7fjsfvyueP5vitx2NZwGMXDJOVZthiS WIZzDpriC2tA0JXmc5GNLQntSiGugPZIumNLZCAKd+qFgrcjnXp5mI3P05y3PJ7xMBlbH2cwDyw2 i5HTUl0lHVKZkNualH5PcfYwjrI0Dtkp6T5oBHAqzSdAjtAgIEw2i2Kfk3638idZDIMoyIYnKziy cBHEjdazAQhYyYU3yKalbChMVS3JlfO6YJGg/in/7zxIwWD5LU8XbBrw0C+5cT7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WkwRVv9ap5QJkRkbfwAVV3ODemAVBaxxg/CSdwwMo0DOVsj50qHmQCvwrJ2dhUX6E2FV1lP hy/X97/Kl600z94oj07JqRamman+lazbZFT9ovHJGhhEqvXWVHXqF8G1I1fiynr7Fs23KaFSYqHn mPoYyCIdHuVzusErUcqCjH5FQgFWjmwtcVQDk5FVc67S02f/Kt9UK+sX5Mxa94z8X4tKVhH+XpVF +cpfQwzlTrpKAq/pbz8kElbdqAoGwsBDcXXqzSCahLnP2UYlJndmG9UlqpxPINM1jkojGXXRBUYU kEi8CQexEaPwIojADdlptJQtVU+rSVNsYBg+WIxf6awZo99ii4bEySaLaIPUt98ExOZr26yqOtLQ bx1gWo1PQm0y43fGRiNmsqSFIV8s/oOwLIvjUB2Zh/di5qWOmH3WOdb8/aetvWb+Z2/7WRf/f41W +/tPV56Y9TYx64J/xwJfRKVf6s+BYBXPEoVhP+qAn1T5Ra8neMaGMYviPIKv+mcSJHzqBaH+zdMU 32jt9dQfs/gXGAifzGK2geW2++zb/9goeq6DjC7Bggz6//Ps54MP7tujc/fw/bt3R+dUCE1wVpWy ffq7IBhg43KEpcAQfAp7p7xmZkN693mqkSzF5YMPtXq/93obSNn/tvS61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuvb/rf0P0/n+8QB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"