#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4b81ac1585dffccfd1b7cb55ffaa868f124e394d 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 H4sIALL7a2cAA+08a3PbOJLzWb8Ca0+KVEai/MpkyjtKzuM8xruO44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaM+fPcPP7efPtun3 ztYWfeKj51vff7O993x35zlA7ex8s7W9vbu9+w3b+gK0NFouMi9l7GtM9X+xbf5llIt0dBVEIx7d smSRzeJop7exsdEztYIN2Vse8dTLODv87js2TeM5+xUA2NEHp9f7RXDBEN7xhB86jH0MwpBls0Cw K85SfpcGWcYj5kkoiRW/vaSZCJvrTvMsT7nrsmCexGnGkjSIMuiNJlkQR72e6hYL0VNDfH57lQeh 71wDcvWYJkAyJAx+04+mcTr3MqRiOs/k40mccv2Yp2mcym7fyzw39KJr/ezTD/LBfDFJEt05X4TB lezHWXV3lnqRwLmaj4BOFxAo+rNFEpRTHAciI3b4fMreJ7hmYff3ewzaJsLyfWb32fAFi5Ms8VLB HQl1it9Tgtv4wIGHkWBehFDwkBFkyoIIFD2acGejR5AJG7fjsfvyueP5vitx2NZwGMXDJOVZthiS WIZzDpriC2tA0JXmc5GNLQntSiGugPZIumNLZCAKd+qFgrcjnXp5mI3P05y3PJ7xMBlbH2cwDyw2 i5HTUl0lHVKZkNualH5PcfYwjrI0Dtkp6T5oBHAqzSdAjtAgIEw2i2Kfk3638idZDIMoyIYnKziy cBHEjdazAQhYyYU3yKalbChMVS3JlfO6YJGg/in/7zxIwWD5LU8XbBrw0C+5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