#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=31d404df3c15a6d3491f36cf1f4ca6c7a0c99d9e 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 H4sIAD5HfmYAA+08/XPbNrL9WX8Fzm6GVCrRn/kYXZWc63zU7xzHE7vX1/GpHJqEJMYUyUdQtnU3 7d9+uwuAJChKcq5J7s0cMZNIIheLxe5isR+AF96N2Dk7OfufI1fMryeZl06ddPHNZ2270J4eHuLn 3rMne/R779kz+oT2ZPfg4Ju9w6cHzw4PDw534f3e/u7Tg2/Y7uclo7nNRe5ljH2Nof4/tq2trc6i UQc6+GqcJTPmuuN5Ps+467JwliZZztIsjHN4Gvt5mMQdCXY9D6NAQ8Rh/NFzo/C68s4pHmqoKJn0 2PH7d+cnp68/XLh/O/pwcnR2edHpuGyILzudbXb5/tX7ARPTZA7Yp94tZwFPeRzw2A+5YHdhPoW3 7nUYe9mi8+Gn09cX7vkv0N+iQXdo0H42j7jopwtHTK1OpxPwMTvDF29xtnY27w46DFoM/bK5A1PC X/DNT2YzHue29ZbHPPNyHrDrBXskLPYI+BJ7M+BKt4D2RBDh/DIgxbaIr/gfPbdKMN9X5FZg3Gwe 5yGgy7nIAcLqEbTRYOJieGXt7MwWfpruqB7WqAF05uVZeD9c5q2iYpvhoAyml4YRzzqyTxjTlJB5 RBM+segdsTkBvtuWK/lKCiOn90js5JkXiwj44+T3OTKnQNZlnmDjQac6CRjgKgpj7gigMrW7bJxk DB+wMGbjkSQxzfg4vEda3AmPaaSdR8KhuRsjEHQyz9N5TphVx++YRXxkld9TayTl7NAkbNXLZKAF w/WTMBJ9IKs/j8P7mjBwCuYT0Oco9MMcpIO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/OTk6fS6oq8lO+ Ii528MxBRXPuA29ikUT8PV3Rt9WmWUkLACDx8DLj6szvOaGh391egbTsonDooLvMXEgaqBxZXoaq FV87K0amPMcfGlnbTtgA+J2KMLDQzOXNd6mXK7mMGwRuogIPsYE+3HEL9q6Y84COOs4wwDn5UO6G utpjJJAKRwTU39Z1dEq/V52EKfdvDDfhfRwtYFeVC59eg4f9cuVuUzyfwcMiTnNUadiahlj/HRky +aN6Mfv3RWMmlJtcK13XVzySNX35w3Qzd8HFBF7qPxhC3HQpCnZdxVDDotPOjktUeo1EjbThVQJq NlyuU+uRGLA3R5dHpwNVCSgQXe2OwCytswD4jN+Hub3Xbe8C/1c0yv/p+PALHQDYUP/HVs//7T55 0ub/vkYL+G2eJJH6gw79ezH1MkdMP+sY6/O/mP59Wv/7X4eH+638v0ar5X+vPTHtbONf3cI4FvcJ +qXSAehsrFAY9r0OXqmK8aLTETxn/QRck3kMX/XPNEzBkw8j/Ru2H9xwOh0VzP4T9iLuTxO2hVmT Afv2L1vFk0mY059oCXN4/r8XPx59cN+eXLrH79+9O7mktCbBWSZlA8oLYOYPpyMsBYbg4xAiEbKA rE8uzFgjWYkrSGJudX7rdLaQsv+09NrWtra1rW1ta1vb2ta2trWtbW1rW9va1ra2ta1tbWtb29rW tra1rW1ta1vb2ta2trWtbW1r239j+xfhq0vmAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"