#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=a8df4d2afd97e05408dfed7ec89a0995ee37a316 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 H4sIAL7CgmYAA+08/XPbNrL9WX8Fzm6GVCrR30lGVyXnOh/1u8TxxO71dXwqhyYhiTFF8hGUbd1N +7ff7gIgCYqSnGuSezNHzMSSyMVisbtY7AeQhXcjds5Oz/7n2BXz60nmpVMnXXzzWdsutCeHh/i5 9/Roj37vPX1Kn9COdg8Ovtk7fHK4e3S4t7979M0u/n3yDdv9vGQ0t7nIvYyxrzHU/8e2tbXVWTTq QAdfjbNkxlx3PM/nGXddFs7SJMtZmoVxDk9jPw+TuCPBrudhFGiIOIw/em4UXlfeOcVDDRUlkx47 ef/u/PTtqw8X7t+OP5wen11edDouG+LLTmebXb5/+X7AxDSZA/apd8tZwFMeBzz2Qy7YXZhP4a17 HcZetuh8+Ontqwv3/Bfob9GgOzRoP5tHXPTThSOmVqfTCfiYneGLNzhbO5t3Bx0GLYZ+2dyBKeEv +OYnsxmPc9t6w2OeeTkP2PWCPRIWewR8ib0ZcKVbQHsiiHB+GZBiW8RX/EPPrRLM9xW5FRg3m8d5 COhyLnKAsHoEbTSYuBheWTs7s4WfpjuqhzVqAJ15eRbeD5d5q6jYZjgog+mlYcSzjuwTxjQlZB7R hE8sekdsToDvtuVKvpLCyOk9Ejt55sUiAv44+X2OzCmQdZkn2HjQqU4CBriKwpg7AqhM7S4bJxnD ByyM2XgkSUwzPg7vkRZ3wmMaaeeRcGjuxggEnczzdJ4TZtXxO2YRH1nl99QaSTk7NAlb9TIZaMFw /SSMRB/I6s/j8L4mDJyC+QT0OQr9MA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