#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6f81c12869d247528d0198770cf9e8165fe9940b 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 H4sIABqmhmcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO44ndy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSfY1yXszj5hJJIGLxWK/sMAuvfCuxWgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+3x3++nOzrNnz7/Z2t5+sv3kG7b1BWhptFxkXsrY15jq/2Lb/NMoF+noMohG PLphySKbxdFOb2Njo2dqBRuytzziqZdxdvDdd2yaxnP2CwCwww9Or/ez4IIhvOMJP3QY+xiEIctm gWCXnKX8Ng2yjEfMk1ASK357STMRNted5lmectdlwTyJ04wlaRBl0BtNsiCOej3VLRaip4b4/OYy D0LfuQLk6jFNgGRIGPymH03jdO5lSMV0nsnHkzjl+jFP0ziV3b6XeW7oRVf62afv5YP5YpIkunO+ CINL2Y+z6u4s9SKBczUfAZ0uIFD0Z4skKKc4CkRG7PD5lL1PcM3C7u/1GLRNhOV7zO6z4QsWJ1ni pYI7EuoEv6cEt/GBAw8jwbwIoeAhI8iUBREoejThzkaPIBM2bsdj9+Vzx/N9V+KwreEwiodJyrNs MSSxDOccNMUX1oCgK83nIhtbEtqVQlwB7ZF0x5bIQBTu1AsFb0c69fIwG5+lOW95PONhMrY+zmAe WGwWI6eluko6pDIhtzUp/Z7i7EEcZWkcshPSfdAI4FSaT4AcoUFAmGwWxT4n/W7lT7IYBlGQDY9X cGThIogbrWcDELCSC2+QTUvZUJiqWpIr53XBIkH9U/7PPEjBYPkNTxds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2maKtfzRPKhIisjR+gqsu5IR2QyiLW+EE4iRtGpnEgZ2vkXOkwE+BVWNbOruICvanwKuvp 8OX6/mf5spXm2Rvl0Sk51cI0M9W/knWbjKpfND5ZA4NItd6aqk79Irhy5EpcWW/fovk2JVRKLPQc Ux8DWaTDo3xON3glSlmQ0a9IKMDKka0ljmpgMrJqzlV6+uzf5ZtqZf2CnFnrnpH/a1HJKsLfqrIo X/lriKHcSVdJ4DX97YdEwqobVcFAGHgork69GUSTMPc526jE5M5so7pElfMJZLrGUWkkoy66wIgC Eok34SA2YhReBBG4ITuNlrKl6mk1aYoNDMMHi/ErnTVj9Fts0ZA42WQRbZD69puA2Hxtm1VVRxr6 rQNMq/FJqE1m/MbYaMRMlrQw5IvFfxCWZXEcqiPz8E7MvNQRs886x5q//7S128z/7D552sX/X6PV /v7TpSdmvU3MuuDfscAXUemX+nMgWMWzRGHYDzrgJ1V+0esJnrFhzKI4j+Cr/pkECZ96Qah/8zTF N1p7PfXHLP4NBsIns5htYLntHvv2LxtFz1WQ0SVYkEH/P05/2v/gvj08cw/ev3t3eEaF0ARnVSnb o78LggE2LkdYCgzBp7B3ymtmNqR3n6cayVJcPvhQq/dbr7eBlP1vS69rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta//f2n8AaS/3egB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"