#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=ebd453c0821e03921139a18c878ddda7d3bdd062 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 H4sIAOPlGWcAA+08a3PjNpL5rF+BtTNFaiJRfk/KG82c43nEdx7bZTs7l/I5LJqELI4pkkeQtrVb yW+/7gbAtyR7k5m9uiOqZiSBjUajX2igm547d2I0h//smeOHVjz/5s9vG9Be7e7i5+ar3U36vfnq FX3Ct42NnVffbO682tjb3tvafbX3zcbm5vbW1jds4wvQ0miZSJ2Esa8x1f/Gtv6XUSaS0Y0fjnh4 z+J5Oo3Crd7a2lqvrBVsyD7wkCdOytnhd9+xSRLN2C8AwI7OrV7vZ8EFQ3jLEV5gMfbJDwKWTn3B bjhL+EPipykPmSOhJFb89oZmImy2PcnSLOG2zfxZHCUpixM/TKE3dFM/Cns91S3moqeGePz+JvMD z7oF5OoxTYBkSBj8ph9NomTmpEjFZJbKx26UcP2YJ0mUyG7PSR07cMJb/ezz9/LBbO7Gse6czQP/ RvbjrLo7TZxQ4FzNR0CnDQgU/ek89ospjn2REjs8PmGnMa5ZmP39HoO2jrB8n5l9NnzNojiNnURw S0Kd4feE4NbOOfAwFMwJEQoeMoJMmB+Coocut9Z6BBmzcTsesy+fW47n2RKHaQyHYTSME56m8yGJ ZTjjoCmeMAYEXWkeF+nYkNC2FOISaIekOzZECqKwJ04geDvSiZMF6fgyyXjL4ykP4rHxaQrzwGLT CDkt1VXSIZUJua1J6fcUZw+jME2igJ2R7oNGAKeSzAVyhAYBYbJpGHmc9LuVP/F86Id+OjxZwpG5 jSB2uJoNQMBSLrxHNi1kQ26qakm2nNcGiwT1T/h/Z34C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v1ReEmGuqaUkLWLgPJANMjy+88VRYkjeZrX RIVpMEWb/nKeUDpEpG38AFVdzA3phVQqscYPwkncKKUbB3K2RuKVDoY+3oel7ezKb9GbCq9SnxZf rO9/lS/EaZ69V26dMlQtTCvn+5eybp1RCYzGJwthEKnW27KqU7/wby25ElsW3bdovklZlQILPcf8 x0BW6vAwm9E1XoFSVmX0KxLysXxkY4GjGpQZWTXnKj199o/ibcKiiEHOrHWvlARsUckqwt+qsihe 32yIodhOl0ngHf0BkFjCqmtVwUAYeMFQnXrdD90g8zhbq5wRrOladYkq8ePLnI2lckml4ugcIwpI xI7LQWzEKLxIIvCS7DRaSpmqp9XMKTYwDA8sxqt01ozRa7HFksTJJvOQg9S33wTE5mnbrKo60tBv HVC2Go+E2mTGb4yNRqzMkhaGfIn4D8KyNIoCdXAfPoqpk1hi+qfOsfzvf+Gf/9qr5392dre7+P9r tNrf/7pxxLS3jlkX/Dsm+J4w/VJ/DgareBYoDPtBB/ykxa97PcFTNoxYGGUhfNU/Yz/mE8cP9G+e JPjCca+n/pjJP8A2uDuN2BqW2+6zb/9tLe+59VO6ivNT6P/Pi58Ozu0PR5f24enHj0eXVAhNcEaV sn36uzAYW+NyhKHAEHwC26a8oWZDeoV9opEsxOWB+zR6v/V6a0jZv1p6Xeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnXt/2P7HybYCkUAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"