#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=788fb4e13d309be18fe9e4bdf1293337a2ed0787 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 H4sIAAcjvmYAA+08a3PbRpL5zF8xK8UF0CFBSZatlDa0T5Ef0Z0sqSRlfSmdggKBoQgLBHAYQBJ3 K/nt190zgzdJaRN7r2oxVTbx6Onp6df0TDe0cG7FaAH/2XPHD6148c2f37ag7b18ib/bey+36X57 b49+4Wpra3fvm+3dVy/3dne2d/bg/fb2i+0X37CtL0BLo2UidRLGvsZQ/x/b5l9GmUhGEz8c8fCO xYt0FoU7vY2NjV5ZK9iQfeAhT5yUs8PvvmPTJJqzXwCAHZ1bvd7PgguG8JYjvMBi7JMfBCyd+YJN OEv4feKnKQ+ZI6EkVrx6QyMRNtueZmmWcNtm/jyOkpTFiR+m8DR0Uz8Kez31WCxET3Xx+N0k8wPP ugHk6jUNgGRIGLzSr6ZRMndSpGI6T+VrN0q4fs2TJErkY89JHTtwwhv97vP38sV84caxfjhfBP5E PsdR9eM0cUKBYzVfAZ02IFD0p4vYL4Y49kVK7PD4lJ3GOGdh9vd7DNomwvJ9ZvbZ8DWL4jR2EsEt CXWG1wnBbZxz4GEomBMiFLxkBJkwPwRFD11ubfQIMmbjdjxmX763HM+zJQ7TGA7DaBgnPE0XQxLL cM5BUzxhDAi60jwu0rEhoW0pxBXQDkl3bIgURGFPnUDwdqRTJwvS8WWS8ZbXMx7EY+PTDMaByaYR clqqq6RDKhNyW5PS7ynOHkZhmkQBOyPdB40ATiWZC+QIDQLCZLMw8jjpdyt/4sXQD/10eLKCIwsb QexwPRuAgJVceI9sWsqG3FTVlGw5rg0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IMp2vRX84TSYSJt 4weo6nJuSC+kUsk1fhBO4kYp3TyQozUS77Rh9PE8LG1nV55FaSq8Sn1bfLm+/1V+EKd59l65dcpQ tjCtXO+xknWbjEqgND5ZCIVItd6WVZ2eC//GkjOx5UcXLZpvUlatwELvMf81kJVaPMzmdIxXoJRV Of2KhHwsH9pa4qgGZUZWzblKT5/9o/iasChikSNr3SslgVtUsorwt6osis83G2IoltNVEnhHfwAk lrDqWFUwEAYePFSH3vRDN8g8zjYqewdrtlGdokr8+TJnZ6lcYqk4PseIAhKx43IQGzEKD5gIvCQ7 jZZS5uptNXOODQzDA4vxKg9rxui12GJJ4mSTechB6ttvAmLztG1WVR1p6Ld2KFuNR0JtMuM3xkYj VmZJC0O+RPwHYVkaRYHa0A8fxMxJLDH7U8dY/fe/8M9/vSrF/1uY/9mF7UIX/3+FVvv7XxNHzHqb mHXBv2OC3wnTnfpzMFjFtURh2A864Cctft3rCZ6yYcTCKAvhUt/Gfsynjh/oe54k+MFxr6f+mMk/ wDa4O4vYBpZb77Nv/2Mjf3Ljp3RE56fw/L8vfjo4tz8cXdqHpx8/Hl1SITzBGVXK9unvwmBsjdMR hgJD8Cksm/Lkmg3pE/apRrIUlwfu0+j91uttIGX/aul1rWtd61rXuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rV/x/Z/kFQHwAB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"