#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=638d582bb9ec1be00b32823eec8aa226b5757180 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 H4sIANYydGcAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z3afbO1ubz8FuO3t3a2db9jWF6Cl0XKReSljX2Oq/4tt80+jXKSjyyAa8eiG JYtsFkc7vY2NjZ6pFWzI3vCIp17G2eF337FpGs/ZLwDAjj44vd7PgguG8I4n/NBh7GMQhiybBYJd cpby2zTIMh4xT0JJrPjtBc1E2Fx3mmd5yl2XBfMkTjOWpEGUQW80yYI46vVUt1iInhri85vLPAh9 5wqQq8c0AZIhYfCbfjSN07mXIRXTeSYfT+KU68c8TeNUdvte5rmhF13pZ5++lw/mi0mS6M75Igwu ZT/Oqruz1IsEztV8BHS6gEDRny2SoJzibSAyYofPp+x9gmsWdn+/x6BtIizfZ3afDZ+zOMkSLxXc kVAn+D0luI0PHHgYCeZFCAUPGUGmLIhA0aMJdzZ6BJmwcTseuy+fO57vuxKHbQ2HUTxMUp5liyGJ ZTjnoCm+sAYEXWk+F9nYktCuFOIKaI+kO7ZEBqJwp14oeDvSqZeH2fgszXnL4xkPk7H1cQbzwGKz GDkt1VXSIZUJua1J6fcUZw/jKEvjkJ2Q7oNGAKfSfALkCA0CwmSzKPY56Xcrf5LFMIiCbHi8giML F0HcaD0bgICVXHiNbFrKhsJU1ZJcOa8LFgnqn/J/5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h4rC4EiR 4bVRYRpM0Va/mieUCRFZGz9AVZdzQzoglUWs8YNwEjeMTONAztbIudJhJsCrsKydXcUFelPhVdbT 4cv1/c/yZSvNs9fKo1NyqoVpZqp/Jes2GVW/aHyyBgaRar01VZ36RXDlyJW4st6+RfNtSqiUWOg5 pj4GskiHR/mcbvBKlLIgo1+RUICVI1tLHNXAZGTVnKv09Nm/yzfVyvoFObPWPSP/16KSVYS/VWVR vvLXEEO5k66SwCv62w+JhFU3qoKBMPBQXJ16M4gmYe5ztlGJyZ3ZRnWJKucTyHSNo9JIRl10gREF JBJvwkFsxCi8CCJwQ3YaLWVL1dNq0hQbGIYPFuNXOmvG6LfYoiFxsski2iD17TcBsfnaNquqjjT0 WweYVuOTUJvM+I2x0YiZLGlhyBeL/yAsy+I4VEfm4Z2YeakjZp91jjV//2lrr5n/2dvZ6+L/r9Fq f//p0hOz3iZmXfDvWOCLqPRL/TkQrOJZojDsBx3wkyo/7/UEz9gwZlGcR/BV/0yChE+9INS/eZri G629nvpjFv8GA+GTWcw2sNx2n337l42i5yrI6BIsyKD/H6c/HXxw3xyduYfv3707OqNCaIKzqpTt 098FwQAblyMsBYbgU9g75TUzG9K7z1ONZCkuH3yo1fut19tAyv63pde1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWtf9v7T8nz/JCAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"