#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=109f05fb6e102af8faff05ef6c731a338420de4a 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 H4sIALDuF2cAA+08/XPbtpL9WX8Fnt0MqVSibMeOO35Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtr+3h5/b+3vb9Ht7 f58+4dvW1u7+N9u7+1t7+y/3t7cBbnv7xfb+N2zrC9DSaJlInYSxrzHV/8a2+ZdRJpLRxA9HPLxj 8SKdReFOb2Njo1fWCjZk73nIEyfl7Oi779g0iebsFwBgxx+tXu9nwQVDeMsRXmAx9skPApbOfMEm nCX8PvHTlIfMkVASK357TTMRNtueZmmWcNtm/jyOkpTFiR+m0Bu6qR+FvZ7qFgvRU0M8fjfJ/MCz bgC5ekwTIBkSBr/pR9MomTspUjGdp/KxGyVcP+ZJEiWy23NSxw6c8EY/+/y9fDBfuHGsO+eLwJ/I fpxVd6eJEwqcq/kI6LQBgaI/XcR+McWJL1Jih8en7CzGNQuzf9Bj0DYRlh8ws8+Gr1gUp7GTCG5J qHP8nhDcxkcOPAwFc0KEgoeMIBPmh6DoocutjR5Bxmzcjsfsy+eW43m2xGEaw2EYDeOEp+liSGIZ zjloiieMAUFXmsdFOjYktC2FuALaIemODZGCKOypEwjejnTqZEE6vkwy3vJ4xoN4bHyawTyw2DRC Tkt1lXRIZUJua1L6PcXZoyhMkyhg56T7oBHAqSRzgRyhQUCYbBZGHif9buVPvBj6oZ8OT1dwZGEj iB2uZwMQsJIL75BNS9mQm6paki3ntcEiQf0T/t+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