#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=48e6d06bea5101ea14741266ef38b511978b6509 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 H4sIAH+OhmcAA+08/XPbNrL9WX8Fzm6GVCpRsuMkHV+VnOt81HeJ44ndy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfSuxWgJ/7kLL4icZPnN529jaE8fP8bPnaePd+j3 7nhMn/jo6fjJNzt7T/d2Ho+fjh89+Wa8s/NovPcNG38BWhotF5mXMvY1pvq/2Lb/NMpFOroMohGP bliyzOZxtNvb2trqmVrBhuw1j3jqZZwdfvcdm6Xxgv0CAOzovdPr/Sy4YAjveMIPHcY+BGHIsnkg 2CVnKb9NgyzjEfMklMSK357TTITNdWd5lqfcdVmwSOI0Y0kaRBn0RtMsiKNeT3WLpeipIT6/ucyD 0HeuALl6TBMgGRIGv+lHszhdeBlSMVtk8vE0Trl+zNM0TmW372WeG3rRlX728Xv5YLGcJonuXCzD 4FL246y6O0u9SOBczUdApwsIFP3ZMgnKKd4EIiN2+HzG3iW4ZmH393sM2jbC8n1m99nwGYuTLPFS wR0JdYLfU4Lbes+Bh5FgXoRQ8JARZMqCCBQ9mnJnq0eQCZu047H78rnj+b4rcdjWcBjFwyTlWbYc kliGCw6a4gtrQNCV5nORTSwJ7UohroH2SLoTS2QgCnfmhYK3I515eZhNztKctzye8zCZWB/mMA8s NouR01JdJR1SmZDbmpR+T3H2MI6yNA7ZCek+aARwKs2nQI7QICBMNo9in5N+t/InWQ6DKMiGx2s4 snQRxI02swEIWMuFV8imlWwoTFUtyZXzumCRoP4p/2cepGCw/IanSz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xg3ASN4xM40DO1si50mEmwKuwrJ1dxQV6U+FV 1tPhq/X9z/JlK82zV8qjU3KqhWlmqn8t67YZVb9ofLIGBpFqvTVVnfpFcOXIlbiy3r5F821KqJRY 6DmmPgaySIdH+YJu8EqUsiCjX5FQgJUj4xWOamAysmrOVXr67N/lm2pl/YKcWeuekf9rUckqwt+q sihf+WuIodxJ10ngJf3th0TCqhtVwUAYeCiuTr0dRNMw9znbqsTkznyrukSV8wlkusZRaSSjLrrA iAISiTflIDZiFF4EEbghO42WsqXqaTVpig0MwweL8SudNWP0W2zRkDjZZBFtkPr2m4DYfG2bVVVH GvqtA0yr8UmoTWb8xthoxEyWtDDki8V/EJZlcRyqI/PwTsy91BHzzzrHhr//NN5r5n/2dp908f/X aLW//3TpiXlvG7Mu+Hcs8EVU+qX+HAhW8axQGPaDDvhJlZ/1eoJnbBizKM4j+Kp/JkHCZ14Q6t88 TfGN1l5P/TGLf4OB8Ok8ZltYbrvPvv3LVtFzFWR0CRZk0P+P058O3ruvj87cw3dv3x6dUSE0wVlV yvbp74JggI3LEZYCQ/AZ7J3ympkN6d3nmUayEpcPPtTq/dbrbSFl/9vS61rXuta1rnWta13rWte6 1rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeva/7f2H7eIuuwAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"