#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=15ac8ca22a30696dea34bea5caa3d47d868528ee 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 H4sIAA1FbmcAA+08a3PbOJLzWb8Ca0+KVEai/MpkyjtKzuM8xruO44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaM+fPcPP7efPtun3 ztYWfeKj51vff7O993x3d29vZ+fZ3jdb29u7W8++YVtfgJZGy0XmpYx9jan+L7bNv4xykY6ugmjE o1uWLLJZHO30NjY2eqZWsCF7yyOeehlnh999x6ZpPGe/AgA7+uD0er8ILhjCO57wQ4exj0EYsmwW CHbFWcrv0iDLeMQ8CSWx4reXNBNhc91pnuUpd10WzJM4zViSBlEGvdEkC+Ko11PdYiF6aojPb6/y IPSda0CuHtMESIaEwW/60TRO516GVEznmXw8iVOuH/M0jVPZ7XuZ54ZedK2fffpBPpgvJkmiO+eL MLiS/Tir7s5SLxI4V/MR0OkCAkV/tkiCcorjQGTEDp9P2fsE1yzs/n6PQdtEWL7P7D4bvmBxkiVe KrgjoU7xe0pwGx848DASzIsQCh4ygkxZEIGiRxPubPQIMmHjdjx2Xz53PN93JQ7bGg6jeJikPMsW QxLLcM5BU3xhDQi60nwusrEloV0pxBXQHkl3bIkMROFOvVDwdqRTLw+z8Xma85bHMx4mY+vjDOaB xWYxclqqq6RDKhNyW5PS7ynOHsZRlsYhOyXdB40ATqX5BMgRGgSEyWZR7HPS71b+JIthEAXZ8GQF RxYugrjRejYAASu58AbZtJQNhamqJblyXhcsEtQ/5f+dBykYLL/l6YJNAx76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r4Aaq6nBvSAaksYo0fhJO4YWQaB3K2Rs6VDjMBXoVl7ewqLtCbCq+y ng5fru9/lS9baZ69UR6dklMtTDNT/StZt8mo+kXjkzUwiFTrranq1C+Ca0euxJX19i2ab1NCpcRC zzH1MZBFOjzK53SDV6KUBRn9ioQCrBzZWuKoBiYjq+ZcpafP/lW+qVbWL8iZte4Z+b8Wlawi/L0q i/KVv4YYyp10lQRe099+SCSsulEVDISBh+Lq1JtBNAlzn7ONSkzuzDaqS1Q5n0CmaxyVRjLqoguM KCCReBMOYiNG4UUQgRuy02gpW6qeVpOm2MAwfLAYv9JZM0a/xRYNiZNNFtEGqW+/CYjN17ZZVXWk od86wLQan4TaZMbvjI1GzGRJC0O+WPwHYVkWx6E6Mg/vxcxLHTH7rHOs+ftPW3vN/M/ezvMu/v8a rfb3n648MettYtYF/44FvohKv9SfA8EqniUKw37UAT+p8oteT/CMDWMWxXkEX/XPJEj41AtC/Zun Kb7R2uupP2bxLzAQPpnFbAPLbffZt/+xUfRcBxldggUZ9P/n2c8HH9y3R+fu4ft3747OqRCa4Kwq Zfv0d0EwwMblCEuBIfgU9k55zcyG9O7zVCNZissHH2r1fu/1NpCy/23pda1rXeta17rWta51rWtd 61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/1v7HwZmlPcAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"