#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=06efda8006e88f396193253570d7b307db5cd858 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 H4sIAAa1gmcAA+08a3PbOJLzWb8Ca0+KVEai/MpkyjtKzuM8xruO44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaM+fPcPP7efPtun3 ztYWfeKj51vff7O993xv69nuzs7e3jdb29u7WzvfsK0vQEuj5SLzUsa+xlT/F9vmX0a5SEdXQTTi 0S1LFtksjnZ6GxsbPVMr2JC95RFPvYyzw+++Y9M0nrNfAYAdfXB6vV8EFwzhHU/4ocPYxyAMWTYL BLviLOV3aZBlPGKehJJY8dtLmomwue40z/KUuy4L5kmcZixJgyiD3miSBXHU66lusRA9NcTnt1d5 EPrONSBXj2kCJEPC4Df9aBqncy9DKqbzTD6exCnXj3maxqns9r3Mc0MvutbPPv0gH8wXkyTRnfNF GFzJfpxVd2epFwmcq/kI6HQBgaI/WyRBOcVxIDJih8+n7H2CaxZ2f7/HoG0iLN9ndp8NX7A4yRIv FdyRUKf4PSW4jQ8ceBgJ5kUIBQ8ZQaYsiEDRowl3NnoEmbBxOx67L587nu+7EodtDYdRPExSnmWL IYllOOegKb6wBgRdaT4X2diS0K4U4gpoj6Q7tkQGonCnXih4O9Kpl4fZ+DzNecvjGQ+TsfVxBvPA YrMYOS3VVdIhlQm5rUnp9xRnD+MoS+OQnZLug0YAp9J8AuQIDQLCZLMo9jnpdyt/ksUwiIJseLKC IwsXQdxoPRuAgJVceINsWsqGwlTVklw5rwsWCeqf8v/OgxQMlt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irb61TyhTIjI2vgBqrqcG9IBqSxijR+Ek7hhZBoHcrZGzpUOMwFehWXt7Cou0JsKr7Ke Dl+u73+VL1tpnr1RHp2SUy1MM1P9K1m3yaj6ReOTNTCIVOutqerUL4JrR67ElfX2LZpvU0KlxELP MfUxkEU6PMrndINXopQFGf2KhAKsHNla4qgGJiOr5lylp8/+Vb6pVtYvyJm17hn5vxaVrCL8vSqL 8pW/hhjKnXSVBF7T335IJKy6URUMhIGH4urUm0E0CXOfs41KTO7MNqpLVDmfQKZrHJVGMuqiC4wo IJF4Ew5iI0bhRRCBG7LTaClbqp5Wk6bYwDB8sBi/0lkzRr/FFg2Jk00W0Qapb78JiM3XtllVdaSh 3zrAtBqfhNpkxu+MjUbMZEkLQ75Y/AdhWRbHoToyD+/FzEsdMfusc6z5+09be838z97OXhf/f41W +/tPV56Y9TYx64J/xwJfRKVf6s+BYBXPEoVhP+qAn1T5Ra8neMaGMYviPIKv+mcSJHzqBaH+zdMU 32jt9dQfs/gXGAifzGK2geW2++zb/9goeq6DjC7Bggz6//Ps54MP7tujc/fw/bt3R+dUCE1wVpWy ffq7IBhg43KEpcAQfAp7p7xmZkN693mqkSzF5YMPtXq/93obSNn/tvS61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuvb/rf0PqI8u1AB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"