#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=655b67a89ed3a4fa8997c5bc188dd80763be7a57 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 H4sIAFMQNGcAA+08/XPbNrL9WX8Fzm6GVCpRtmPXHV+VPNf5qN9zbE/sXl7H53IoErIYUyQfQdrW 3bR/+9tdAPyWZF+b3M0dMZNIAheLxX5hgV164dyK0QL+s+eOH1rx4qs/vm1B29/bw8/t/b1t+r29 v0+f8G1ra3f/q+3d/e09ANvfg/7t7Rfb+1+xrc9AS6NlInUSxr7EVP+KbfNPo0wko4kfjnh4x+JF OovCnd7GxkavrBVsyN7xkCdOytnRN9+waRLN2c8AwI4/WL3eT4ILhvCWI7zAYuyjHwQsnfmCTThL +H3ipykPmSOhJFb89opmImy2Pc3SLOG2zfx5HCUpixM/TKE3dFM/Cns91S0WoqeGePxukvmBZ90A cvWYJkAyJAx+04+mUTJ3UqRiOk/lYzdKuH7MkyRKZLfnpI4dOOGNfvbpO/lgvnDjWHfOF4E/kf04 q+5OEycUOFfzEdBpAwJFf7qI/WKKE1+kxA6PT9lZjGsWZv+gx6BtIiw/YGafDV+yKE5jJxHcklDn +D0huI0PHHgYCuaECAUPGUEmzA9B0UOXWxs9gozZuB2P2ZfPLcfzbInDNIbDMBrGCU/TxZDEMpxz 0BRPGAOCrjSPi3RsSGhbCnEFtEPSHRsiBVHYUycQvB3p1MmCdHyZZLzl8YwH8dj4OIN5YLFphJyW 6irpkMqE3Nak9HuKs0dRmCZRwM5J90EjgFNJ5gI5QoOAMNksjDxO+t3Kn3gx9EM/HZ6u4MjCRhA7 XM8GIGAlF94im5ayITdVtSRbzmuDRYL6J/z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RKRt/ABVXc4N6YVUKrHGD8JJ3CilGwdytkbilQ6GPt6Hpe3sym/RmwqvUp8WX67vf5YvxGme vVVunTJULUwr5/tXsm6TUQmMxicLYRCp1tuyqlO/8G8suRJbFt23aL5JWZUCCz3H/MdAVurwMJvT NV6BUlZl9CsS8rF8ZGuJoxqUGVk15yo9ffb34m3CoohBzqx1r5QEbFHJKsJfq7IoXt9siKHYTldJ 4A39AZBYwqprVcFAGHjBUJ160w/dIPM426icEazZRnWJKvHjy5yNpXJJpeLoHCMKSMSOy0FsxCi8 SCLwkuw0WkqZqqfVzCk2MAwPLMardNaM0WuxxZLEySbzkIPUt98ExOZp26yqOtLQbx1QthqPhNpk xq+MjUaszJIWhnyO+A/CsjSKAnVwHz6ImZNYYvaHzrH673/hn//6tp7/2QWwLv7/Aq32978mjpj1 NjHrgn/HBN8Tpl/qz8FgFc8ShWHf64CftPhlryd4yoYRC6MshK/6Z+zHfOr4gf7NkwRfOO711B8z +TvYBndnEdvActsD9vV/beQ9N35KV3F+Cv3/e/Hj4Qf73fGlfXT2/v3xJRVCE5xRpeyA/i4Mxta4 HGEoMASfwrYpb6jZkF5hn2okS3F54D6N3q+93gZS9s+WXte61rWuda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd+09s/w+Gl0EcAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"