#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=23f182252746300d027d554a55ab5aa5dc05e93d 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 H4sIAFQFbmcAA+08a3PbOJLzWb8Ca0+KVEai5EcmU95Rch7nMd5NHFfs2dyUz8OiRchiTJE8grSt 3Zr57dfdAEjwIcnZSXJXdURVIglsNBr9QgPd9NK7EaMl/OcuvCBykuU3n7+NoT198gQ/d54+2aHf u+MxfeKjp+Pvv9nZf7q3tz/e3ft+/5vxzs7eeO8bNv4CtDRaLjIvZexrTPV/sW3/ZZSLdHQVRCMe 3bJkmc3jaLe3tbXVM7WCDdlrHvHUyzg7+u47NkvjBfsVANjxe6fX+0VwwRDe8YQfOox9CMKQZfNA sCvOUn6XBlnGI+ZJKIkVvz2nmQib687yLE+567JgkcRpxpI0iDLojaZZEEe9nuoWS9FTQ3x+e5UH oe9cA3L1mCZAMiQMftOPZnG68DKkYrbI5ONpnHL9mKdpnMpu38s8N/Sia/3s4w/ywWI5TRLduViG wZXsx1l1d5Z6kcC5mo+AThcQKPqzZRKUU7wJREbs8PmMvUtwzcLuH/QYtG2E5QfM7rPhMxYnWeKl gjsS6hS/pwS39Z4DDyPBvAih4CEjyJQFESh6NOXOVo8gEzZpx2P35XPH831X4rCt4TCKh0nKs2w5 JLEMFxw0xRfWgKArzecim1gS2pVCXAPtkXQnlshAFO7MCwVvRzrz8jCbnKc5b3k852EysT7MYR5Y bBYjp6W6SjqkMiG3NSn9nuLsURxlaRyyU9J90AjgVJpPgRyhQUCYbB7FPif9buVPshwGUZANT9Zw ZOkiiBttZgMQsJYLr5BNK9lQmKpakivndcEiQf1T/t95kILB8lue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KItb4QTiJG0amcSBna+Rc6TAT4FVY1s6u4gK9qfAq 6+nw1fr+V/mylebZK+XRKTnVwjQz1b+WdduMql80PlkDg0i13pqqTv0iuHbkSlxZb9+i+TYlVEos 9BxTHwNZpMOjfEE3eCVKWZDRr0gowMqR8QpHNTAZWTXnKj199q/yTbWyfkHOrHXPyP+1qGQV4e9V WZSv/DXEUO6k6yTwkv72QyJh1Y2qYCAMPBRXp94OommY+5xtVWJyZ75VXaLK+QQyXeOoNJJRF11g RAGJxJtyEBsxCi+CCNyQnUZL2VL1tJo0xQaG4YPF+JXOmjH6LbZoSJxssog2SH37TUBsvrbNqqoj Df3WAabV+CTUJjN+Z2w0YiZLWhjyxeI/CMuyOA7VkXl4L+Ze6oj5Z51jw99/Gu838z/7u0+6+P9r tNrff7ryxLy3jVkX/DsW+CIq/VJ/DgSreFYoDPtRB/ykys96PcEzNoxZFOcRfNU/kyDhMy8I9W+e pvhGa6+n/pjFv8BA+HQesy0stz1g3/7HVtFzHWR0CRZk0P+fZz8fvndfH5+7R+/evj0+p0JogrOq lB3Q3wXBABuXIywFhuAz2DvlNTMb0rvPM41kJS4ffKjV+73X20LK/rel17Wuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1/2/tfwCTAPcFAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"