#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=9587fba6198f589a75ad7fb149fe66e903fc105c 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 H4sIAEJEd2cAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJ02e728934fn29pPt7W/Y1hegpdFykXkpY19jqv+LbfNPo1yko6sgGvHo liWLbBZHO72NjY2eqRVsyN7yiKdextnBd9+xaRrP2S8AwA5PnV7vZ8EFQ3jHE37oMPYhCEOWzQLB rjhL+V0aZBmPmCehJFb89pJmImyuO82zPOWuy4J5EqcZS9IgyqA3mmRBHPV6qlssRE8N8fntVR6E vnMNyNVjmgDJkDD4TT+axuncy5CK6TyTjydxyvVjnqZxKrt9L/Pc0Iuu9bOP38sH88UkSXTnfBEG V7IfZ9XdWepFAudqPgI6XUCg6M8WSVBOcRSIjNjh8yl7n+Cahd3f6zFomwjL95jdZ8MXLE6yxEsF dyTUCX5PCW7jlAMPI8G8CKHgISPIlAURKHo04c5GjyATNm7HY/flc8fzfVfisK3hMIqHScqzbDEk sQznHDTFF9aAoCvN5yIbWxLalUJcAe2RdMeWyEAU7tQLBW9HOvXyMBufpzlveTzjYTK2PsxgHlhs FiOnpbpKOqQyIbc1Kf2e4uxBHGVpHLIT0n3QCOBUmk+AHKFBQJhsFsU+J/1u5U+yGAZRkA2PV3Bk 4SKIG61nAxCwkgtvkE1L2VCYqlqSK+d1wSJB/VP+zzxIwWD5LU8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FwZEi w2ujwjSYoq1+NU8oEyKyNn6Aqi7nhnRAKotY4wfhJG4YmcaBnK2Rc6XDTIBXYVk7u4oL9KbCq6yn w5fr+5/ly1aaZ2+UR6fkVAvTzFT/StZtMqp+0fhkDQwi1Xprqjr1i+DakStxZb19i+bblFApsdBz TH0MZJEOj/I53eCVKGVBRr8ioQArR7aWOKqByciqOVfp6bN/l2+qlfULcmate0b+r0Ulqwh/q8qi fOWvIYZyJ10lgdf0tx8SCatuVAUDYeChuDr1ZhBNwtznbKMSkzuzjeoSVc4nkOkaR6WRjLroAiMK SCTehIPYiFF4EUTghuw0WsqWqqfVpCk2MAwfLMavdNaM0W+xRUPiZJNFtEHq228CYvO1bVZVHWno tw4wrcYnoTaZ8RtjoxEzWdLCkC8W/0FYlsVxqI7Mw3sx81JHzD7rHGv+/tPWbjP/s/vkSRf/f41W +/tPV56Y9TYx64J/xwJfRKVf6s+BYBXPEoVhP+iAn1T5Ra8neMaGMYviPIKv+mcSJHzqBaH+zdMU 32jt9dQfs/g3GAifzGK2geW2e+zbv2wUPddBRpdgQQb9/zj7af/UfXt47h68f/fu8JwKoQnOqlK2 R38XBANsXI6wFBiCT2HvlNfMbEjvPk81kqW4fPChVu+3Xm8DKfvfll7Xuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta1/6/tf8AGgJy8AB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"