#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b0c161d20b7e272b3e04068e0ed1eda534503c5d 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 H4sIAK8ze2cAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJs2dPtp9uA9z29pPtrW/Y1hegpdFykXkpY19jqv+LbfNPo1yko6sgGvHo liWLbBZHO72NjY2eqRVsyN7yiKdextnBd9+xaRrP2S8AwA5PnV7vZ8EFQ3jHE37oMPYhCEOWzQLB rjhL+V0aZBmPmCehJFb89pJmImyuO82zPOWuy4J5EqcZS9IgyqA3mmRBHPV6qlssRE8N8fntVR6E vnMNyNVjmgDJkDD4TT+axuncy5CK6TyTjydxyvVjnqZxKrt9L/Pc0Iuu9bOP38sH88UkSXTnfBEG V7IfZ9XdWepFAudqPgI6XUCg6M8WSVBOcRSIjNjh8yl7n+Cahd3f6zFomwjL95jdZ8MXLE6yxEsF dyTUCX5PCW7jlAMPI8G8CKHgISPIlAURKHo04c5GjyATNm7HY/flc8fzfVfisK3hMIqHScqzbDEk sQznHDTFF9aAoCvN5yIbWxLalUJcAe2RdMeWyEAU7tQLBW9HOvXyMBufpzlveTzjYTK2PsxgHlhs FiOnpbpKOqQyIbc1Kf2e4uxBHGVpHLIT0n3QCOBUmk+AHKFBQJhsFsU+J/1u5U+yGAZRkA2PV3Bk 4SKIG61nAxCwkgtvkE1L2VCYqlqSK+d1wSJB/VP+zzxIw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