#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=fb42513c1d9859e7d3506ad4a7a5e4f778f94a0b 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 H4sIAKOGhGcAA+08/XPbNrL9WX8Fzm6GVCpRtuM0HV+VPNf5qO8cx2O7l9fxczm0CFmMKZKPIG3r btq//e0uABL8kGRfk7w384hpIwlcLBb7hQV26YV3I0YL+Mede0HkJItvPn/bgvbi+XP83H7xfJt+ 72xt0Sc+erH1/Tfbuy92t7e3nsF/32xtb+98/+IbtvUFaGm0XGReytjXmOr/Ytv8yygX6egqiEY8 umXJIpvF0U5vY2OjZ2oFG7J3POKpl3F28N13bJrGc/YrALDDU6fX+0VwwRDe8YQfOox9DMKQZbNA sCvOUn6XBlnGI+ZJKIkVv72imQib607zLE+567JgnsRpxpI0iDLojSZZEEe9nuoWC9FTQ3x+e5UH oe9cA3L1mCZAMiQMftOPpnE69zKkYjrP5ONJnHL9mKdpnMpu38s8N/Sia/3s0w/ywXwxSRLdOV+E wZXsx1l1d5Z6kcC5mo+AThcQKPqzRRKUUxwFIiN2+HzKPiS4ZmH393oM2ibC8j1m99nwJYuTLPFS wR0JdYLfU4LbOOXAw0gwL0IoeMgIMmVBBIoeTbiz0SPIhI3b8dh9+dzxfN+VOGxrOIziYZLyLFsM SSzDOQdN8YU1IOhK87nIxpaEdqUQV0B7JN2xJTIQhTv1QsHbkU69PMzG52nOWx7PeJiMrY8zmAcW m8XIaamukg6pTMhtTUq/pzh7EEdZGofshHQfNAI4leYTIEdoEBAmm0Wxz0m/W/mTLIZBFGTD4xUc WbgI4kbr2QAErOTCW2TTUjYUpqqW5Mp5XbBIUP+U/3c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4SRuGJnGgZytkXOlw0yAV2FZO7uKC/Smwqus p8OX6/tf5ctWmmdvlUen5FQL08xU/0rWbTKqftH4ZA0MItV6a6o69Yvg2pErcWW9fYvm25RQKbHQ c0x9DGSRDo/yOd3glShlQUa/IqEAK0e2ljiqgcnIqjlX6emzf5VvqpX1C3JmrXtG/q9FJasIf6/K onzlryGGciddJYE39LcfEgmrblQFA2Hgobg69WYQTcLc52yjEpM7s43qElXOJ5DpGkelkYy66AIj Ckgk3oSD2IhReBFE4IbsNFrKlqqn1aQpNjAMHyzGr3TWjNFvsUVD4mSTRbRB6ttvAmLztW1WVR1p 6LcOMK3GJ6E2mfE7Y6MRM1nSwpAvFv9BWJbFcaiOzMN7MfNSR8w+6xxr/v7T1m4z/wPfu/j/a7Ta 33+68sSst4lZF/w7FvgiKv1Sfw4Eq3iWKAz7UQf8pMovez3BMzaMWRTnEXzVP5Mg4VMvCPVvnqb4 Rmuvp/6Yxb/AQPhkFrMNLLfdY9/+x0bRcx1kdAkWZND/n2c/75+67w7P3YMP798fnlMhNMFZVcr2 6O+CYICNyxGWAkPwKeyd8pqZDend56lGshSXDz7U6v3e620gZf/b0uta17rWta51rWtd61rXuta1 rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13r2v+39j/Hv1+/AHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"