#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c668460da4d1abc38b295dfe7cbb1d59dd7807a2 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 H4sIAPt9imcAA+08/XPbNrL9WX8Fzm6GVCpRtuPEHV+VnOt81HeJ47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0PaePsXP7b2n2/R7 Z2uLPvHR3tazb7Z393Z3dveePXuy883W9vaT7d1v2NYXoKXRcpF5KWNfY6r/i23zT6NcpKOrIBrx 6JYli2wWRzu9jY2NnqkVbMje8IinXsbZ4XffsWkaz9kvAMCOTp1e72fBBUN4xxN+6DD2IQhDls0C wa44S/ldGmQZj5gnoSRW/PaCZiJsrjvNszzlrsuCeRKnGUvSIMqgN5pkQRz1eqpbLERPDfH57VUe hL5zDcjVY5oAyZAw+E0/msbp3MuQiuk8k48nccr1Y56mcSq7fS/z3NCLrvWzj9/LB/PFJEl053wR BleyH2fV3VnqRQLnaj4COl1AoOjPFklQTvE2EBmxw+dT9j7BNQu7v99j0DYRlu8zu8+Gz1mcZImX Cu5IqBP8nhLcxikHHkaCeRFCwUNGkCkLIlD0aMKdjR5BJmzcjsfuy+eO5/uuxGFbw2EUD5OUZ9li SGIZzjloii+sAUFXms9FNrYktCuFuALaI+mOLZGBKNypFwrejnTq5WE2Pk9z3vJ4xsNkbH2YwTyw 2CxGTkt1lXRIZUJua1L6PcXZwzjK0jhkJ6T7oBHAqTSfADlCg4Aw2SyKfU763cqfZDEMoiAbHq/g yMJFEDdazwYgYCUXXiOblrKhMFW1JFfO64JFgvqn/J95k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+EE7ihpFpHMjZGjlXOswEeBWWtbOruEBvKrzK ejp8ub7/Wb5spXn2Wnl0Sk61MM1M9a9k3Saj6heNT9bAIFKtt6aqU78Irh25ElfW27dovk0JlRIL PcfUx0AW6fAon9MNXolSFmT0KxIKsHJka4mjGpiMrJpzlZ4++3f5plpZvyBn1rpn5P9aVLKK8Leq LMpX/hpiKHfSVRJ4RX/7IZGw6kZVMBAGHoqrU28G0STMfc42KjG5M9uoLlHlfAKZrnFUGsmoiy4w ooBE4k04iI0YhRdBBG7ITqOlbKl6Wk2aYgPD8MFi/EpnzRj9Fls0JE42WUQbpL79JiA2X9tmVdWR hn7rANNqfBJqkxm/MTYaMZMlLQz5YvEfhGVZHIfqyDy8FzMvdcTss86x5u8/be028z+7T5518f/X aLW//3TliVlvE7Mu+Hcs8EVU+qX+HAhW8SxRGPaDDvhJlZ/3eoJnbBizKM4j+Kp/JkHCp14Q6t88 TfGN1l5P/TGLf4OB8MksZhtYbrvPvv3LRtFzHWR0CRZk0P+Ps58OTt03R+fu4ft3747OqRCa4Kwq Zfv0d0EwwMblCEuBIfgU9k55zcyG9O7zVCNZissHH2r1fuv1NpCy/23pda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/1v7D+HGN1sAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"