#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=117dee72814688de0472a0cc6d94636ab54f2112 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 H4sIACXoHmcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOn5Vcq7zUd8ltsd2X67jczm0CFmMKZJHkLb1 3rR/++0uAJIgKcl+bfJu7oiZRBK4WCz2Cwvs0gvvRowW8J8794LISRbf/PltC9rL58/xc/vl8236 vf3yJX3Ct62t3ZffbO++BJgXz15uPftma3v72faLb9jWF6Cl0XKReSljX2Oq/41t8y+jXKSjqyAa 8eiWJYtsFkc7vY2NjV5VK9iQvecRT72Ms4PvvmPTNJ6zXwCAHZ46vd7PgguG8I4n/NBh7FMQhiyb BYJdcZbyuzTIMh4xT0JJrPjtNc1E2Fx3mmd5yl2XBfMkTjOWpEGUQW80yYI46vVUt1iInhri89ur PAh95xqQq8c0AZIhYfCbfjSN07mXIRXTeSYfT+KU68c8TeNUdvte5rmhF13rZ5+/lw/mi0mS6M75 IgyuZD/Oqruz1IsEztV8BHS6gEDRny2SoJziQyAyYofPp+w4wTULu7/XY9A2EZbvMbvPhq9YnGSJ lwruSKgT/J4S3MYpBx5GgnkRQsFDRpApCyJQ9GjCnY0eQSZs3I7H7svnjuf7rsRhW8NhFA+TlGfZ YkhiGc45aIovrAFBG83nIhtbEtqVQlwB7ZF0x5bIQBTu1AsFb0c69fIwG5+nOW95PONhMrY+zWAe WGwWI6eluko6pDIhtzUp/Z7i7EEcZWkcshPSfdAI4FSaT4AcoUFAmGwWxT4n/W7lT7IYBlGQDY9W cGThIogbrWcDELCSC++QTUvZUJiqWpIr53XBIkH9U/7feZCCwfJbni7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