#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=708b7850ffc3dad254c94cf91b33ba3e5f6a4f47 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 H4sIAAPZgWcAA+08a3PbOJLzWb8Ca0+KVEai/MpkyjtKzuM8xruO44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaM+fPcPP7efPtun3 ztYWfeKj51vff7O993xva/fZ3s7ezjdb29u7WzvfsK0vQEuj5SLzUsa+xlT/F9vmX0a5SEdXQTTi 0S1LFtksjnZ6GxsbPVMr2JC95RFPvYyzw+++Y9M0nrNfAYAdfXB6vV8EFwzhHU/4ocPYxyAMWTYL BLviLOV3aZBlPGKehJJY8dtLmomwue40z/KUuy4L5kmcZixJgyiD3miSBXHU66lusRA9NcTnt1d5 EPrONSBXj2kCJEPC4Df9aBqncy9DKqbzTD6exCnXj3maxqns9r3Mc0MvutbPPv0gH8wXkyTRnfNF GFzJfpxVd2epFwmcq/kI6HQBgaI/WyRBOcVxIDJih8+n7H2CaxZ2f7/HoG0iLN9ndp8NX7A4yRIv FdyRUKf4PSW4jQ8ceBgJ5kUIBQ8ZQaYsiEDRowl3NnoEmbBxOx67L587nu+7EodtDYdRPExSnmWL IYllOOegKb6wBgRdaT4X2diS0K4U4gpoj6Q7tkQGonCnXih4O9Kpl4fZ+DzNecvjGQ+TsfVxBvPA YrMYOS3VVdIhlQm5rUnp9xRnD+MoS+OQnZLug0YAp9J8AuQIDQLCZLMo9jnpdyt/ksUwiIJseLKC IwsXQdxoPRuAgJVceINsWsqGwlTVklw5rwsWCeqf8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va/mieUCRFZGz9AVZdzQzoglUWs8YNwEjeMTONAztbIudJhJsCrsKydXcUFelPhVdbT 4cv1/a/yZSvNszfKo1NyqoVpZqp/Jes2GVW/aHyyBgaRar01VZ36RXDtyJW4st6+RfNtSqiUWOg5 pj4GskiHR/mcbvBKlLIgo1+RUICVI1tLHNXAZGTVnKv09Nm/yjfVyvoFObPWPSP/16KSVYS/V2VR vvLXEEO5k66SwGv62w+JhFU3qoKBMPBQXJ16M4gmYe5ztlGJyZ3ZRnWJKucTyHSNo9JIRl10gREF JBJvwkFsxCi8CCJwQ3YaLWVL1dNq0hQbGIYPFuNXOmvG6LfYoiFxsski2iD17TcBsfnaNquqjjT0 WweYVuOTUJvM+J2x0YiZLGlhyBeL/yAsy+I4VEfm4b2YeakjZp91jjV//2lrr5n/gc8u/v8arfb3 n648MettYtYF/44FvohKv9SfA8EqniUKw37UAT+p8oteT/CMDWMWxXkEX/XPJEj41AtC/ZunKb7R 2uupP2bxLzAQPpnFbAPLbffZt/+xUfRcBxldggUZ9P/n2c8HH9y3R+fu4ft3747OqRCa4KwqZfv0 d0EwwMblCEuBIfgU9k55zcyG9O7zVCNZissHH2r1fu/1NpCy/23pda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/1v7H4cAD1IAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"