#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=2bcfb1a7752b93babbf76b6f9235e14f185683aa 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 H4sIAKEKs2YAA+08bXPbxtH5zF9xleIB6JCgJMsvw4Z2FfklamVZYylNM3oYDAQcRVgggOJASWwn +e3d3bsDcCBISk3sPjPBzcQigb29vd29fbtlFt61GFzx2PXT1EkXX32OsQPj2f4+/t19/nSXvu8+ f05/Yew/e7r/1S7++2zn6e7+0692dneeP9v5iu18FmpqYy5yL2PsSyz1/3FsbW11SvGzPsvnWcwW oBWOJ4KIZTzNuOBx7uVhErMwzhN2+M03HZw3yZIZc93JHOZw12XhLE2ynKUZQMHT2McpHQUW8JvL eRgFDqzmIH6X8Ks59mmWXGXerMdmSQCwk+KDy3vsOl+kvNdh9xkEW0xy8x478Wb8HBEwkc9y+a97 X3QEDJOOYvjnmt+lGeGmD/JxV25wtgAW6u3MFlF4WXnu0AP9NveuxG2Y+9Mei5IrxSCgNoyvNIjv ibzTcdlIQnSAEewdj3EbNkD22KQ7pA1s40Q+ZHaxXVrK+TELc551Wf8lO0li3iHgH05dgAKk8C89 ACqmJTmIucs8gavzYcGfcEIP1ArcwT0PDe5NnFtczrZA8Fa3U7zjUX3uWZ6tmvtdeAVvH6+ffxyK +uJyR8gwCUUwPbXXbvNaCPKtZb6ssNc5RwY3T31Zo7DKKRyZFwrODoTgGar/myxLMmJsKcVTDzTd bhJiqaprpKgJTR2lCR2DQPZIwH8sdWJAVln1DaisjXrbpDxan9crD0IBr/FPk/rg83X6I09Pg/4o vCRDOmhqrRUieBTgBhHACbsPFUWFI2dg1PgMbJuNCrPEFH301/NE5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