#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=8291fee9e2e44c98aaf72dfc758b7183373c88a2 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 H4sIALGjL2cAA+08/XPbtpL9WX8Fnt0MqVSibMeOO35Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtr+3h5/b+3vb9Ht7 f58+4dvW1u7+N9u7+9sv9ne297ahf3v7xfbON2zrC9DSaJlInYSxrzHV/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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DTI8vtPFUWJI3ma10SFaTBF m/5qnlA6RKRt/ABVXc4N6YVUKrHGD8JJ3CilGwdytkbilQ6GPt6Hpe3sym/RmwqvUp8WX67vf5Uv xGmevVNunTJULUwr5/tXsm6TUQmMxicLYRCp1tuyqlO/8G8suRJbFt23aL5JWZUCCz3H/MdAVurw MJvTNV6BUlZl9CsS8rF8ZGuJoxqUGVk15yo9ffaP4m3CoohBzqx1r5QEbFHJKsLfqrIoXt9siKHY TldJ4C39AZBYwqprVcFAGHjBUJ160w/dIPM426icEazZRnWJKvHjy5yNpXJJpeLoHCMKSMSOy0Fs xCi8SCLwkuw0WkqZqqfVzCk2MAwPLMardNaM0WuxxZLEySbzkIPUt98ExOZp26yqOtLQbx1QthqP hNpkxm+MjUaszJIWhnyJ+A/CsjSKAnVwHz6ImZNYYvanzrH673/hn/96Wc//7MJxoYv/v0Kr/f2v iSNmvU3MuuDfMcH3hOmX+nMwWMWzRGHYDzrgJy1+1esJnrJhxMIoC+Gr/hn7MZ86fqB/8yTBF457 PfXHTP4BtsHdWcQ2sNz2gH37bxt5z42f0lWcn0L/f178dPjRfn98aR+dffhwfEmF0ARnVCk7oL8L g7E1LkcYCgzBp7BtyhtqNqRX2KcayVJcHrhPo/dbr7eBlP2rpde1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta1/4/tv8BVecFQQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"