#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c287f55b33453f6f04080b39fe2d8d5dd7b9695a 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 H4sIAFT3zGYAA+08a3PjNpL5rF+BtTNFaiLRz3mUN5o5x/OI72Y8rrGzuZTPYdEkZHFMkTwCsq3d Sn77dTcAkqAoybPJzNbVElW2JbLR6Bca3Q3A8+BGbJ0cn/znoS9mV9dFkE+8fP7Nn9q2oT3d36e/ 0Jp/n2zv7X2zs//06d7Os729pwC3A7+ffMO2/1wy2ttMyKBg7Jsiy+QquHXv/5+2jY2N3rzVBnr4 alxkU+b745mcFdz3WTzNs0KyvIhTCU/TUMZZ2lNgV7M4iQxEGqefAj+Jr2rvvPKhgUqy6wE7+vD+ 9Pjd649n/t8OPx4fnpyf9Xo+G+HLXm+TnX949eGAiUk2A+yT4JaziOc8jXgaxlywu1hO4K1/FadB Me99/Ond6zP/9Bfo79CgWzTosJglXAzzuScmTq/Xi/iYneCLt8itW8z6Bz0GLYV+xcwDlvAbfAqz 6ZSn0nXe8pQXgeQRu5qzR8Jhj0AuaTAFqfRL6EBECfJXACmuQ3LFX/TcqcDCUJNbg/GLWSpjQCe5 kADhDAjaasC4GF04W1vTeZjnW7qHc9kCOg1kEd+PFmWrqdhkOCgD9vI44UVP9YlTYgmFRzThE4fe kZgzkLvr+EquZDCKvUdiSxZBKhKQjyfvJQqnRNZngWDjg16dCRjgIolT7gmgMnf7bJwVDB+wOGXj S0ViXvBxfI+0+Nc8pZG2HgmPeLdGIOhsJvOZJMy643fMITmy2veJc6n07BETru5lC9CB4YZZnIgh kDWcpfF9QxnIgv0E7DmJw1iCdlC1W2J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ePbqXfOoXwXyc+ms kAdV2GMnx++eK6pq+tOxIk52iMzBRCUPQTapyBL+gf5Fg6sXzdqxcAAkGZ4XXO/5nxIa+t4flEir LhqHOXRdnVxXNFA5ojoM2Si+9JaMTOfc/9DIxnfCAsDvdIaBhSau/vOBssulUsYFAhdRgZtYYA93 3IG1K+U8oq3OKSY4xx+r1dDc9rMuEJSBCJi/a+poVEOrBwkTHt5YYcKHNJnDqqomPr2GCPvl0tWm fD6Fh2We5unSkDOJsf5zaenkj9rF9J9XjV3dawutTF1Py0jV9NQXO8zchhATZGn+YQxJ06cs2Pe1 QC2PTis7TlEVNRI1yofXCWj4cDVPnUfigL05PD98d6BPIZaILrYvwS2t8gD4jN/H0t3pd3fB/y1a xG9lliX6HzoM78UkKDwx+VPHWF3/w/Lf00b9b393d7+r/32N1qj/XQVi0tvE/7qFeQz6Cfqm00Fc bJYYDPveJC901ulFrye4ZMMMlqZZCh/N1zzOIZKLE/Md3A86nF5PJzP/AF/Ew0nGNjBrPmDf/sdG +eQ6lvQvWmIJz//77MfDj/7b43P/6MP798fnVNYiOMem7IDyQqz8IDvC0WAIPo4hEqUKOBvSEjY2 SJbiirKUO73fer0NpOxfrb2uda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuvbv2P4PZBEvRgB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"