#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b63c3442d2bb37f912e18a5c17d5e22f3fff4f08 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 H4sIAENboWYAA+08/XPbNrL9WX8Fzm6GVCpRsmM3GV2VPNf5qO8S22O719fxczk0CVmMKZKPH7Z1 N+3f/nYXAEmQlORcm9ybO2ImlkQuFov9wu4CyNK5TUdZ4oTpLEoWVrz86o9vY2jf7u3h587z/R36 vfP8OX3Ct73d/Wdf7ex9uz/e3d/f2xl/Nd7ZeQbgbPwZaGm0PM2chLEvMdT/x7a1tdWrip8NWZYn IZtHi+iGhzzKUxb6wQvLSb2AJTxOeMrDzI9C5odZxOY844mC7C1Bm2qQDsL2cJhZEi2Ybc9yGIDb NvMXcZRkLE4AETwNXYKUYB6/u879wLMAtYUE2IRW9gnvnCDnA/lpl9+ytu5Ildbd/BB5eQC9ToH0 xFkM2CLyoM+s+GJngx57TLvNljEgog/oxNJsIf/ir1v+ECePxnUUQpeL6JaHA3bu34QOMmrAjp0F vwD0fcmbxdKNY2uxDPxrNaEguhmwzLlJ7/3MnUs4IMkPbxSI66SA/b2fZr2ezabYpdfrwVTZBzCB 7/n5cnEdBSbysT8hercRA58wU/G2z4YvYWoJvfVnxHMLRjX77E/TQhaWwDQp5pw4fsrZQZryBCX8 JkmixDTePMTczbjHBPiA3UQZe5Ia7Alh6lP3hJMyIu2SCkuBE5CVanPA2W2eAUJdqidXGyaDwI+e CgI/eiICWEzDz/hCTeVCWSOgTTbPRqpYj0B+PLXxJRMToEegEfNSNQQ+5qRICi8nBgzAB2Yxb9DF /kRTW4m4OgVSWDlmXwMOIhdgSZdNI3ayuT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