#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=2375098651cda5310b63bbde64f8b8634ed375ed 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 H4sIAHq4O2cAA+08a3PbRpL5zF8xK8UF0CFBUZbllDa0T5Ef0Z0sqSRlfSmdgoKAoQgLBHAYQBJ3 K/nt190zgzdJaRN77+owVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37agvXr5En/Hr16O6X78 6hX9wtXW1s6rb8Y7r8a7r17sbG3vfrM1Hr8Y73zDtr4ALY2WidRJGPsaQ/1vbJt/GWUiGV374YiH dyxepLMo3O5tbGz0ylrBhuwDD3nipJwdfPcdmybRnP0CAOzwzOr1fhZcMIS3HOEFFmOf/CBg6cwX 7JqzhN8nfprykDkSSmLFqzc0EmGz7WmWZgm3bebP4yhJWZz4YQpPQzf1o7DXU4/FQvRUF4/fXWd+ 4Fk3gFy9pgGQDAmDV/rVNErmTopUTOepfO1GCdeveZJEiXzsOaljB054o999/l6+mC/cONYP54vA v5bPcVT9OE2cUOBYzVdApw0IFP3pIvaLIY58kRI7PD5lJzHOWZj9vR6DtomwfI+ZfTZ8zaI4jZ1E cEtCneJ1QnAbZxx4GArmhAgFLxlBJswPQdFDl1sbPYKM2aQdj9mX7y3H82yJwzSGwzAaxglP08WQ xDKcc9AUTxgDgq40j4t0YkhoWwpxBbRD0p0YIgVR2FMnELwd6dTJgnRykWS85fWMB/HE+DSDcWCy aYScluoq6ZDKhNzWpPR7irMHUZgmUcBOSfdBI4BTSeYCOUKDgDDZLIw8Tvrdyp94MfRDPx0er+DI wkYQO1zPBiBgJRfeI5uWsiE3VTUlW45rg0WC+if8vzM/AYP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jZ+gKou54b0QiqVWOMH4SRulNKNAzlaI/FKO0Afz8PSdnblp+hNhVep T4sv1/e/yg/iNM/eK7dOGaoWppXz/StZt8moBEbjk4UwiFTrbVnV6bnwbyw5E1sW3bdovklZlQIL vcf8x0BW6vAwm9MxXoFSVmX0KxLysXxka4mjGpQZWTXnKj199o/ia8KiiEGOrHWvlARsUckqwt+q sig+32yIoVhOV0ngHf0BkFjCqmNVwUAYeJJQHXrTD90g8zjbqGwGrNlGdYoq8ePLnI2lckml4ugc IwpIxI7LQWzEKDwxIvCS7DRaSpmqt9XMKTYwDA8sxqs8rBmj12KLJYmTTeYhB6lvvwmIzdO2WVV1 pKHf2qFsNR4JtcmM3xgbjViZJS0M+RLxH4RlaRQFaoc+fBAzJ7HE7E8dY/Xf/8I//7Vbz//s7Ox2 8f/XaLW//3XtiFlvE7Mu+HdM8DthulN/DgareJYoDPtBB/ykxa97PcFTNoxYGGUhXOrb2I/51PED fc+TBD847vXUHzP5B9gGd2cR28By2z327b9t5E9u/JTO3PwUnv/n+U/7Z/aHwwv74OTjx8MLKoQm OKNK2R79XRiMrXE6wlBgCD6FZVMeRbMhfcI+1UiW4vLAfRq933q9DaTsXy29rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2/7H9D/sv5HUAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"