#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c1eb56c301e3eb1c66b2ba36cb9242e645860ef4 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 H4sIANLzemcAA+08/XPbNrL9WX8Fzm6GVCpRtuPEHV+VnOt81HeJ47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0PaePsXP7b2n2/R7 Z2uLPvHR3tazb7Z39548e7q3/fTZ7jdb29tPtve+YVtfgJZGy0XmpYx9jan+L7bNP41ykY6ugmjE o1uWLLJZHO30NjY2eqZWsCF7wyOeehlnh999x6ZpPGe/AAA7OnV6vZ8FFwzhHU/4ocPYhyAMWTYL BLviLOV3aZBlPGKehJJY8dsLmomwue40z/KUuy4L5kmcZixJgyiD3miSBXHU66lusRA9NcTnt1d5 EPrONSBXj2kCJEPC4Df9aBqncy9DKqbzTD6exCnXj3maxqns9r3Mc0MvutbPPn4vH8wXkyTRnfNF GFzJfpxVd2epFwmcq/kI6HQBgaI/WyRBOcXbQGTEDp9P2fsE1yzs/n6PQdtEWL7P7D4bPmdxkiVe KrgjoU7we0pwG6cceBgJ5kUIBQ8ZQaYsiEDRowl3NnoEmbBxOx67L587nu+7EodtDYdRPExSnmWL IYllOOegKb6wBgRdaT4X2diS0K4U4gpoj6Q7tkQGonCnXih4O9Kpl4fZ+DzNecvjGQ+TsfVhBvPA YrMYOS3VVdIhlQm5rUnp9xRnD+MoS+OQnZDug0YAp9J8AuQIDQLCZLMo9jnpdyt/ksUwiIJseLyC IwsXQdxoPRuAgJVceI1sWsqGwlTVklw5rwsWCeqf8n/mQ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ZEZG38AFVdzg3pgFQWscYPwkncMDKNAzlbI+dKh5kAr8KydnYVF+hNhVdZ T4cv1/c/y5etNM9eK49OyakWppmp/pWs22RU/aLxyRoYRKr11lR16hfBtSNX4sp6+xbNtymhUmKh 55j6GMgiHR7lc7rBK1HKgox+RUIBVo5sLXFUA5ORVXOu0tNn/y7fVCvrF+TMWveM/F+LSlYR/laV RfnKX0MM5U66SgKv6G8/JBJW3agKBsLAQ3F16s0gmoS5z9lGJSZ3ZhvVJaqcTyDTNY5KIxl10QVG FJBIvAkHsRGj8CKIwA3ZabSULVVPq0lTbGAYPliMX+msGaPfYouGxMkmi2iD1LffBMTma9usqjrS 0G8dYFqNT0JtMuM3xkYjZrKkhSFfLP6DsCyL41AdmYf3Yualjph91jnW/P2nrd1m/md3d7uL/79G q/39pytPzHqbmHXBv2OBL6LSL/XnQLCKZ4nCsB90wE+q/LzXEzxjw5hFcR7BV/0zCRI+9YJQ/+Zp im+09nrqj1n8GwyET2Yx28By23327V82ip7rIKNLsCCD/n+c/XRw6r45OncP3797d3ROhdAEZ1Up 26e/C4IBNi5HWAoMwaewd8prZjakd5+nGslSXD74UKv3W6+3gZT9b0uva13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWv/39p/ABSSV7UAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"