#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4f233fbe443e987b957069e3760f584c02f4a393 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 H4sIANK+KGcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jUzk0CVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y9393afvdx9sfPNzu7us539b9jOF6Cl0TKROgljX2Oq/41t+y+jTCSjKz8c 8fCWxct0HoV7va2trV5ZK9iQvechT5yUs8PvvmOzJFqwXwCAHX20er2fBRcM4S1HeIHF2Cc/CFg6 9wW74izhd4mfpjxkjoSSWPHba5qJsNn2LEuzhNs28xdxlKQsTvwwhd7QTf0o7PVUt1iKnhri8dur zA886xqQq8c0AZIhYfCbfjSLkoWTIhWzRSofu1HC9WOeJFEiuz0ndezACa/1s8/fyweLpRvHunOx DPwr2Y+z6u40cUKBczUfAZ02IFD0p8vYL6Y49kVK7PD4jJ3GuGZh9sc9Bm0bYfmYmX02fMWiOI2d RHBLQp3h94Tgtj5y4GEomBMiFDxkBJkwPwRFD11ubfUIMmaTdjxmXz63HM+zJQ7TGA7DaBgnPE2X QxLLcMFBUzxhDAi60jwu0okhoW0pxDXQDkl3YogURGHPnEDwdqQzJwvSyUWS8ZbHcx7EE+PTHOaB xaYRclqqq6RDKhNyW5PS7ynOHkZhmkQBOyPdB40ATiWZC+QIDQLCZPMw8jjpdyt/4uXQD/10eLKG I0sbQexwMxuAgLVceIdsWsmG3FTVkmw5rw0WCeqf8P/O/AQMl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b99TyhdIhI2/gBqrqaG9ILqVRijR+Ek7hRSjcO5GyNxCsdDH28D0vb2ZXfojcVXqU+Lb5a3/8q X4jTPHun3DplqFqYVs73r2XdNqMSGI1PFsIgUq23ZVWnfuFfW3Iltiy6b9F8k7IqBRZ6jvmPgazU 4WG2oGu8AqWsyuhXJORj+cjOCkc1KDOyas5VevrsH8XbhEURg5xZ614pCdiiklWEv1VlUby+2RBD sZ2uk8Bb+gMgsYRV16qCgTDwgqE69bYfukHmcbZVOSNY863qElXix5c5G0vlkkrF0TlGFJCIHZeD 2IhReJFE4CXZabSUMlVPq5lTbGAYHliMV+msGaPXYosliZNN5iEHqW+/CYjN07ZZVXWkod86oGw1 Hgm1yYzfGBuNWJklLQz5EvEfhGVpFAXq4D68F3MnscT8T51j/d//wj//9aKe/9l/9qKL/79Gq/39 rytHzHvbmHXBv2OC7wnTL/XnYLCKZ4XCsB90wE9a/KrXEzxlw4iFURbCV/0z9mM+c/xA/+ZJgi8c 93rqj5n8A2yDu/OIbWG57Zh9+29bec+1n9JVnJ9C/3+e/3Tw0X5/dGEfnn74cHRBhdAEZ1QpG9Pf hcHYGpcjDAWG4DPYNuUNNRvSK+wzjWQlLg/cp9H7rdfbQsr+1dLrWte61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWv/H9v/AJzmBaYAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"