#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=15a56e1fcf280afcc9f015eccdae1b2fb8f8a53f 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 H4sIAHIPXWYAA+08a3PbRpL+zF8xkeIC6JCgJMuOixvap8iPaNeWVZayvpROQUHEUIQFAjgMIIm7 lfz26+554ElS3sTeulpMlS1y0NPT06/p6R5w6V2L0RL+cxdeEDnJ8sGf33agff/kCf2FVvu7u7Oz //2D3f2ne9/v7Xy//2Tvwc7u452nTx+wnS9AS6PlIvNSxh6kcZytg9v0/P9p2/5mlIt0dBlEIx7d sGSZzeNor7e1tdUrawUbsjc84qmXcXb43XdslsYL9gsAsKMPTq/3s+CCIbzjCT90GPsYhCHL5oFg l5yl/DYNsoxHzJNQEit+ekEzETbXneVZnnLXZcEiidOMJWkQZdAbTbMgjno91S2WoqeG+PzmMg9C 37kC5OoxTYBkSBj8pB/N4nThZUjFbJHJx9M45foxT9M4ld2+l3lu6EVX+tmnZ/LBYjlNEt25WIbB pezHWXV3lnqRwLmaj4BOFxAo+rNlEhRTvA1ERuzw+Yy9T3DNwu6PewzaNsLyMbP7bPicxUmWeKng joQ6wc8pwW194MDDSDAvQih4yAgyZUEEih5NubPVI8iETdrx2H353PF835U4bGs4jOJhkvIsWw5J LMMFB03xhTUg6ErzucgmloR2pRDXQHsk3YklMhCFO/NCwduRzrw8zCZnac5bHs95mEysj3OYBxab xchpqa6SDqlMyG1NSr+nOHsYR1kah+yEdB80AjiV5lMgR2gQECabR7HPSb9b+ZMsh0EUZMPjNRxZ ugjiRpvZAASs5cJrZNNKNhhTVUty5bwuWCSof8r/Nw9SMFh+w9MlmwU89AtunM25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hzryjUvJuEF81IleXbSeWgVjmsGXmLqt9Rr2Sh9d7H8UjwSigqh7IfNsahlhxc2Qvw9WkOZyC2 JzcFlVTBe5/rTwPFzGqN9KXF/1F/xf3htbI272cyghcaIVI7YWUWkUvTSNTMCp+caG98UdyRo8ts 1Vts28y+CuNLOPzBMbyvolr5cRqC/OmzgUZyam7Pb3o9grq/06uI4bM8Hk20xuHJlX2OJeDya/Ca u42giHYWudbVtkhMrPvQlSgPEdrgXEf159mi0h20tJXWqH47oWaPm+M3lcquBLIyX/Qa77+aH03w fTndkP1y8LdT9+Tg7Cf13YeTeOnnE+SvGIBXT+Ikx5s9/osKclLsVRGisZJ2jyKDKvnCrSLctmZx jKVcObR6qkTQrh75JZrPb7I4DlVBf3gn5l7qiPmfOsf63//Cn/96Wqv/7e/t7XT1v6/Rar//demJ eW8bb13i75jge8L0Tf0czDbtPa0Kw37QFTzKdTzv9SDaY8OYRXEewUf9NQkSPvOCUH/naYovHPd6 6sdM/glmz6fzmG1humXMvv2vLdNzFWR0RSfIoP+/T386+OC+OTpzD9+/e3d0RokwgrOqlI3pd2Gw EobLEZYCQ/BZEPny5hob0ivsM41kJS4/jrjV+63X20LK/t3S61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1r/4nt/wC+NxdwAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"