#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c5fb1d7b51b02043ab13ad9cad9dd64df5e3312c 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 H4sIANOErWYAA+08/XPbNrL9WX8Fzm6GVCpR8keajK5KznU+6neO44nd6+v4uRyahCzGFMlHULZ1 N+3ffrsLgCQoSrKvTd6bKTHTWCIXi8XuYr+w6sK7EYNrHrt+mjrp4qvPMYYwvt3fx787z5/t0Ped 58/pL4z9b5/tf7UD/+7tDXd394ZfDXeGzwGcDT8LNbUxF7mXMfYllvr/OLa2tjql+Fmf5fMsZgvQ CscTQcQynmZc8Dj38jCJWRjnCTv85psOzptkyYy57mQOc7jrsnCWJlnO0gyg4Gns45SOAgv47dU8 jAIHVnMQv0v41Rz7NEuuM2/WY7MkANhJ8cHlPXaTL1Le67CHDIItJrl5j514M36OCJjIZ7n8130o OgKGSUcx/HPD79OMcNMH+bgrNzhbAAv1dmaLKLyqPHfogX6be9fiLsz9aY9FybViEFAbxtcaxPdE 3um4bCwhOsAI9o7HuA0bIHts0h3RBrZxIh8xu9guLeX8lIU5z7qs/5KdJDHvEPCPpy5AAVL4lx4A FdOSHMTcZZ7A1fmo4E84oQdqBe7gnkcG9ybOHS5nWyB4q9sp3vGoPvcsz1bN/T68hrdP188/DkV9 cbkjZJiEIpie2mu3eS0E+c4yX1bY65wjg5unvqxRWOUUjswLBWcHQvAM1f9NliUZMbaU4qkHmm43 CbFU1TVS1ISmjtKEjkEgeyLgP5Y6MSCrrPoGVNZGvW1SHq3P65UHoYDX+KdJffD5Ov2Rp6dBfxRe kiEdNLXWChE8CXCDCOCE3ceKosKRMzBqfAa2zUaFWWKK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