#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b15c7f3dce6bf617ba2a6593a6802b1982b893cd 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 H4sIAFxSf2YAA+08/XPbNrL9WX8Fzm6GVCrR30lGVyXnOh/1u8TxxO71dXwqhyYhiTFF8hGUbd1N +7ff7gIgCYqSnGuSezNHzCSSyMVisbtY7AfghXcjds5Oz/7n2BXz60nmpVMnXXzzWdsutCeHh/i5 9/Roj37vPX1Kn9COdg8Ovtk7fHLw9MnR3u7h7je7e/u7Tw6+Ybufl4zmNhe5lzH2NYb6/9i2trY6 i0Yd6OCrcZbMmOuO5/k8467LwlmaZDlLszDO4Wns52ESdyTY9TyMAg0Rh/FHz43C68o7p3iooaJk 0mMn79+dn7599eHC/dvxh9Pjs8uLTsdlQ3zZ6Wyzy/cv3w+YmCZzwD71bjkLeMrjgMd+yAW7C/Mp vHWvw9jLFp0PP719deGe/wL9LRp0hwbtZ/OIi366cMTU6nQ6AR+zM3zxBmdrZ/PuoMOgxdAvmzsw JfwF3/xkNuNxbltveMwzL+cBu16wR8Jij4AvsTcDrnQLaE8EEc4vA1Jsi/iK/9FzqwTzfUVuBcbN 5nEeArqcixwgrB5BGw0mLoZX1s7ObOGn6Y7qYY0aQGdenoX3w2XeKiq2GQ7KYHppGPGsI/uEMU0J mUc04ROL3hGbE+C7bbmSr6QwcnqPxE6eebGIgD9Ofp8jcwpkXeYJNh50qpOAAa6iMOaOACpTu8vG ScbwAQtjNh5JEtOMj8N7pMWd8JhG2nkkHJq7MQJBJ/M8neeEWXX8jlnER1b5PbVGUs4OTcJWvUwG WjBcPwkj0Qey+vM4vK8JA6dgPg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