#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=ce37317195007cb90b020a483c47da6f28155d65 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 H4sIANMDH2cAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799XWq5db23sv4fn29ovt7W/Y1hegpdEykToJY19jqv+NbfMvo0wko4kfjnh4 x+JFOovCnd7GxkavrBVsyD7wkCdOytnhd9+xaRLN2S8AwI7OrV7vZ8EFQ3jLEV5gMfbJDwKWznzB Jpwl/D7x05SHzJFQEit+e0MzETbbnmZplnDbZv48jpKUxYkfptAbuqkfhb2e6hYL0VNDPH43yfzA s24AuXpMEyAZEga/6UfTKJk7KVIxnafysRslXD/mSRIlsttzUscOnPBGP/v8vXwwX7hxrDvni8Cf yH6cVXeniRMKnKv5COi0AYGiP13EfjHFsS9SYofHp+w0xjULs7/fY9A2EZbvM7PPhq9ZFKexkwhu Sagz/J4Q3MY5Bx6GgjkhQsFDRpAJ80NQ9NDl1kaPIGM2bsdj9uVzy/E8W+IwjeEwjIZxwtN0MSSx DOccNMUTxoCgK83jIh0bEtqWQlwB7ZB0x4ZIQRT21AkEb0c6dbIgHV8mGW95PONBPDY+zWAeWGwa Iaeluko6pDIhtzUp/Z7i7GEUpkkUsDPSfdAI4FSSuUCO0CAgTDYLI4+TfrfyJ14M/dBPhycrOLKw EcQO17MBCFjJhffIpqVsyE1VLcmW89pgkaD+Cf/vzE/AYPkdTx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