#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=a41545b447c6b918f4996a6e58e4e432ccdff115 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 H4sIAInmOmcAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r+4wVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37agvdrbw9/tV3vbdL/9 6hX9wtXW1u6rb7Z3X22/3Hv5Aq+3trdfbL/6hm19AVoaLROpkzD2NYb639g2/zLKRDKa+OGIh3cs XqSzKNzpbWxs9MpawYbsAw954qScHX73HZsm0Zz9AgDs6Nzq9X4WXDCEtxzhBRZjn/wgYOnMF2zC WcLvEz9NecgcCSWx4tUbGomw2fY0S7OE2zbz53GUpCxO/DCFp6Gb+lHY66nHYiF6qovH7yaZH3jW DSBXr2kAJEPC4JV+NY2SuZMiFdN5Kl+7UcL1a54kUSIfe07q2IET3uh3n7+XL+YLN471w/ki8Cfy OY6qH6eJEwocq/kK6LQBgaI/XcR+McSxL1Jih8en7DTGOQuzv99j0DYRlu8zs8+Gr1kUp7GTCG5J qDO8Tghu45wDD0PBnBCh4CUjyIT5ISh66HJro0eQMRu34zH78r3leJ4tcZjGcBhGwzjhaboYkliG cw6a4gljQNCV5nGRjg0JbUshroB2SLpjQ6QgCnvqBIK3I506WZCOL5OMt7ye8SAeG59mMA5MNo2Q 01JdJR1SmZDbmpR+T3H2MArTJArYGek+aARwKslcIEdoEBAmm4WRx0m/W/kTL4Z+6KfDkxUcWdgI Yofr2QAErOTCe2TTUjbkpqqmZMtxbbBIUP+E/3fmJ2Cw/I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QOkSkbfwAVV3ODemFVCqxxg/CSdwopRsHcrRG4pU2hj6eh6Xt7MpP0ZsKr1KfFl+u73+VH8Rp nr1Xbp0yVC1MK+f7V7Juk1EJjMYnC2EQqdbbsqrTc+HfWHImtiy6b9F8k7IqBRZ6j/mPgazU4WE2 p2O8AqWsyuhXJORj+cjWEkc1KDOyas5VevrsH8XXhEURgxxZ614pCdiiklWEv1VlUXy+2RBDsZyu ksA7+gMgsYRVx6qCgTDwgKE69KYfukHmcbZR2SNYs43qFFXix5c5G0vlkkrF0TlGFJCIHZeD2IhR eJBE4CXZabSUMlVvq5lTbGAYHliMV3lYM0avxRZLEiebzEMOUt9+ExCbp22zqupIQ7+1Q9lqPBJq kxm/MTYasTJLWhjyJeI/CMvSKArUxn34IGZOYonZnzrG6r//hX/+62U9/7MLYF38/xVa7e9/TRwx 621i1gX/jgl+J0x36s/BYBXPEoVhP+iAn7T4da8neMqGEQujLIRLfRv7MZ86fqDveZLgB8e9nvpj Jv8A2+DuLGIbWG67z779t438yY2f0lGcn8Lz/7z46eDc/nB0aR+efvx4dEmF0ARnVCnbp78Lg7E1 TkcYCgzBp7BsyhNqNqRP2KcayVJcHrhPo/dbr7eBlP2rpde1rnWta13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta1/4/tv8BC1O9aAB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"