#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=32982394a050629f572ac259649928dc544cea3a 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 H4sIANvflWYAA+08a3PbRpL5zF8xK8UF0CFBSZbllDa0T5Ef0Z0tqSxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/H8Of5uv3i+Tffb L17QL1xtbe2++GZ7d2/3+bPnL/Z24f329rOd7W/Y1hegpdEyIb2Usa8x1P/HtvmXUSbS0VUQjXh0 y5KFnMXRTm9jY6NX1go2ZO94xFNPcnb43XdsmsZz9gsAsKOPTq/3s+CCIbzjCT90GPsUhCGTs0Cw K85SfpcGUvKIeQpKYcWrVzQSYXPdaSazlLsuC+ZJnEqWpEEk4Wk0kUEc9Xr6sViInu7i89urLAh9 5xqQ69c0AJKhYPDKvJrG6dyTSMV0LtXrSZxy85qnaZyqx74nPTf0omvz7vP36sV8MUkS83C+CIMr 9RxHNY9l6kUCx2q+AjpdQKDpl4skKIZ4HwhJ7PD5lJ0kOGdh9/d7DNomwvJ9ZvfZ8CWLE5l4qeCO gjrF65TgNj5y4GEkmBchFLxkBJmyIAJFjybc2egRZMLG7XjsvnrveL7vKhy2NRxG8TBJuZSLIYll OOegKb6wBgRdaT4XcmwpaFcJcQW0R9IdW0KCKNypFwrejnTqZaEcn6cZb3k942Eytj7NYByYrIyR 00pdFR1KmZDbhpR+T3P2MI5kGofslHQfNAI4lWYTIEcYEBAmm0Wxz0m/W/mTLIZBFMjh8QqOLFwE caP1bAACVnLhLbJpKRtyU9VTctW4LlgkqH/K/zcLUjB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ykx/NU8oHSJkGz9AVZdzQ3khnUqs8YNwEjdK6caBGq2ReKUNY4DnYbKdXfkpelPhderT4cv1/a/q gzjDs7farVOGqoVp5Xz/StZtMiqBMfhUIQwiNXpbVnV6LoJrR83EVUX3LZpvU1alwELvMf8xUJU6 PMrmdIxXoFRVGf2KhAIsH9la4qgGZUZWzblKT5/9o/iasChiUCMb3SslAVtUsorwt6osis83G2Io ltNVEnhDfwAkUbD6WFUwEAYePFSH3gyiSZj5nG1U9g7ObKM6RZ34CVTOxtG5pFJxdI4RBSQSb8JB bMQoPGAi8JLsDFpKmeq31cwpNjAMHyzGrzysGaPfYosliZNN5iEHqW+/CYjNN7ZZVXWkod/aoWw1 Pgm1yYzfGBuNWJklLQz5EvEfhGUyjkO9oR/ei5mXOmL2p46x+u9/4Z//2qvnf+C6i/+/Rqv9/a8r T8x6m5h1wb9jgt8J053+czBYxbNEYdgPJuAnLX7Z6wku2TBmUZxFcGlukyDhUy8IzT1PU/zguNfT f8zkH2AbfDKL2QaW2+6zb/9jI39yHUg6ogskPP/vs58OPrrvjs7dw5MPH47OqRCa4KwqZfv0d2Ew tsbpCEuDIfgUlk11cs2G9An71CBZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevav2P7P/DG7iIAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"