#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=2688975c05475a9f3eb01acc88077df77d952787 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 H4sIACzOv2cAA+08/XPbtpL9WX8Fnt0MqVSibMepM3pVcq7zUd8ljid2X6/j53JoErIYUySPoGzr vWn/9ttdACRBUpJzTfJu7oiZWBK4WOw3FsAyS+9GjPLMi8U0yeZOuvzm87cdaN/v7+Pn7sHTXfq9 t7NDn9C1v/f0yTe7+wdPDw72vz/YffLNzu7uk6d737CdL0BLoy1E7mWMfY2p/je2ra2tXlX9bMjy RRazWTJPrnnMk4VgcRg9czwRRCzjacYFj/MwiVkY5wmb8ZxnGrK3BGuqQXoI28NpplkyZ647XcAE 3HVZOE+TLGdpBoigN/YJUoEF/PZqEUaBA6gdJMAltGpMfOtFCz5Qn275LW8bjlQZw+13SbCIYNQp kJ558wGbJwGMmRZf3HzQYw9pN/kyBUT0AYOYyOfqL/664fdp9mBcxzEMOU9ueDxgZ+F17KGgBuzE m/NzQN9Xspkv/TR15ssovNIMRcn1gOXetbgLc3+m4ICkML7WIL4nAPvbUOS9nssmOKTX6wGr7B24 wI/8bDm/SiIb5dgfE73biIGPma1l22fD58BaRk/DKcncgVntPvvLpNCFIzGNC54zLxScHQrBM9Tw qyxLMtt6dZ9yP+cBk+ADdp3k7JGw2CPC1KfhGSdjRNoVFY4GJyBHGDwgd5s5QKgL3XO5gRkEfjAr CPxgRiSwZCPM+Vyzcq69EdBmm7lRJtYjkJ9PXXzIJAPUBRYxK01D4mOeQFJ4yRgIADvsgm+wxf7Y MFuFuMoCGayas28AR4kPsGTLtpV6+cwaMMufLeIb+LIzYE/6yM/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