#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=09b8b0ba3cf0a491cf23bc45b6787fde4c8b3976 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 H4sIALUIIWcAA+08a3PbRpL5zF8xK8UF0CFBvWyntKF9ivyI7mRJJSnrS+kUFAgMRVgggMMAkrhb yW+/7p4ZvElKm9h7dYepskkOenp6+jU90w0tnFsxWsB/9tzxQytefPPnty1or168wM/tVy+26ff2 q1f0Cd+2tvZefbO992p7a2drb3sHnm9v77za+YZtfQFaGi0TqZMw9jWm+t/YNv8yykQymvjhiId3 LF6ksyjc6W1sbPTKWsGG7AMPeeKknB1+9x2bJtGc/QIA7Ojc6vV+FlwwhLcc4QUWY5/8IGDpzBds wlnC7xM/TXnIHAklseK3NzQTYbPtaZZmCbdt5s/jKElZnPhhCr2hm/pR2OupbrEQPTXE43eTzA88 6waQq8c0AZIhYfCbfjSNkrmTIhXTeSofu1HC9WOeJFEiuz0ndezACW/0s8/fywfzhRvHunO+CPyJ 7MdZdXeaOKHAuZqPgE4bECj600XsF1Mc+yIldnh8yk5jXLMw+/s9Bm0TYfk+M/ts+JpFcRo7ieCW hDrD7wnBbZxz4GEomBMiFDxkBJkwPwRFD11ubfQIMmbjdjxmXz63HM+zJQ7TGA7DaBgnPE0XQxLL cM5BUzxhDAi60jwu0rEhoW0pxBXQDkl3bIgURGFPnUDwdqRTJwvS8WWS8ZbHMx7EY+PTDOaBxaYR clqqq6RDKhNyW5PS7ynOHkZhmkQBOyPdB40ATiWZC+QIDQLCZLMw8jjpdyt/4sXQD/10eLKCIwsb QexwPRuAgJVceI9sWsqG3FTVkmw5rw0WCeqf8P/O/AQMlt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sYPUNXl3JBeSKUSa/wgnMSNUrpxIGdrJF7pYOjjfVjazq78Fr2p8Cr1afHl+v5X+UKc 5tl75dYpQ9XCtHK+fyXrNhmVwGh8shAGkWq9Las69Qv/xpIrsWXRfYvmm5RVKbDQc8x/DGSlDg+z OV3jFShlVUa/IiEfy0e2ljiqQZmRVXOu0tNn/yjeJiyKGOTMWvdKScAWlawi/K0qi+L1zYYYiu10 lQTe0R8AiSWsulYVDISBFwzVqTf90A0yj7ONyhnBmm1Ul6gSP77M2Vgql1Qqjs4xooBE7LgcxEaM woskAi/JTqOllKl6Ws2cYgPD8MBivEpnzRi9FlssSZxsMg85SH37TUBsnrbNqqojDf3WAWWr8Uio TWb8xthoxMosaWHIl4j/ICxLoyhQB/fhg5g5iSVmf+ocq//+F/75r5f1/M/ezl4X/3+NVvv7XxNH zHqbmHXBv2OC7wnTL/XnYLCKZ4nCsB90wE9a/LrXEzxlw4iFURbCV/0z9mM+dfxA/+ZJgi8c93rq j5n8A2yDu7OIbWC57T779t828p4bP6WrOD+F/v+8+Ong3P5wdGkfnn78eHRJhdAEZ1Qp26e/C4Ox NS5HGAoMwaewbcobajakV9inGslSXB64T6P3W6+3gZT9q6XXta51rWtd61rXuta1rnWta13rWte6 1rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWtf+P7b/Af1QutAAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"