#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=30ee4f3edf1e77fde2d8581be211701eabad9d50 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 H4sIAFCchmcAA+08a3PbOJLzWb8Ca0+KVEaibMceT3lHyXmcx3g3cVyxZ3NTPg+LFiGLMUXyCNK2 dmvmt193AyDBhyR7J8ld1RFViSSw0Wj0Cw100wvvRowW8J8794LISRbffP62BW1/bw8/t/f3tun3 ztYWfeKj/a3vv9ne3d/d3tve29/b/2Zre/vZ9t43bOsL0NJouci8lLGvMdX/xbb5l1Eu0tFVEI14 dMuSRTaLo53exsZGz9QKNmRveMRTL+Ps6Lvv2DSN5+xXAGDHH5xe7xfBBUN4xxN+6DD2MQhDls0C wa44S/ldGmQZj5gnoSRW/PaCZiJsrjvNszzlrsuCeRKnGUvSIMqgN5pkQRz1eqpbLERPDfH57VUe hL5zDcjVY5oAyZAw+E0/msbp3MuQiuk8k48nccr1Y56mcSq7fS/z3NCLrvWzTz/IB/PFJEl053wR BleyH2fV3VnqRQLnaj4COl1AoOjPFklQTvE2EBmxw+dT9j7BNQu7f9Bj0DYRlh8wu8+Gz1mcZImX Cu5IqFP8nhLcxgcOPIwE8yKEgoeMIFMWRKDo0YQ7Gz2CTNi4HY/dl88dz/ddicO2hsMoHiYpz7LF kMQynHPQFF9YA4KuNJ+LbGxJaFcKcQW0R9IdWyIDUbhTLxS8HenUy8NsfJ7mvOXxjIfJ2Po4g3lg sVmMnJbqKumQyoTc1qT0e4qzR3GUpXHITkn3QSOAU2k+AXKEBgFhslkU+5z0u5U/yWIYREE2PFnB kYWLIG60ng1AwEouvEY2LWVDYapqSa6c1wWLBPVP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BP3HisLg SJHhtVFhGkzRVr+aJ5QJEVkbP0BVl3NDOiCVRazxg3ASN4xM40DO1si50mEmwKuwrJ1dxQV6U+FV 1tPhy/X9r/JlK82z18qjU3KqhWlmqn8l6zYZVb9ofLIGBpFqvTVVnfpFcO3Ilbiy3r5F821KqJRY 6DmmPgaySIdH+Zxu8EqUsiCjX5FQgJUjW0sc1cBkZNWcq/T02b/KN9XK+gU5s9Y9I//XopJVhL9X ZVG+8tcQQ7mTrpLAK/rbD4mEVTeqgoEw8FBcnXoziCZh7nO2UYnJndlGdYkq5xPIdI2j0khGXXSB EQUkEm/CQWzEKLwIInBDdhotZUvV02rSFBsYhg8W41c6a8bot9iiIXGyySLaIPXtNwGx+do2q6qO NPRbB5hW45NQm8z4nbHRiJksaWHIF4v/ICzL4jhUR+bhvZh5qSNmn3WONX//aWu3mf/Zfbbfxf9f o9X+/tOVJ2a9Tcy64N+xwBdR6Zf6cyBYxbNEYdiPOuAnVX7e6wmesWHMojiP4Kv+mQQJn3pBqH/z NMU3Wns99ccs/gUGwiezmG1gue0B+/Y/Noqe6yCjS7Agg/7/PPv58IP75vjcPXr/7t3xORVCE5xV peyA/i4IBti4HGEpMASfwt4pr5nZkN59nmokS3H54EOt3u+93gZS9r8tva51rWtd61rXuta1rnWt a13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWu/X9r/wPAJlLOAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"