#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=4f230f40696dbed962115a2cb27020fe990c003a 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 H4sIALe3dmcAA+08a3PbOJLzWb8Ca0+KVEai/JxMeUfJeZzHeDdxXLZnc1M+D4sWIYsxRfII0rZ2 a+a3X3cDIMGHJGcnyV3VEVWJJLDRaPQLDXTTC+9WjBbwnzv3gshJFt98/rYF7dn+Pn5uP9vfpt87 W1v0iY+ebX3/zfbes939/d3d/Z3db7a2t3e3nn3Dtr4ALY2Wi8xLGfsaU/1fbJt/GeUiHV0H0YhH dyxZZLM42ultbGz0TK1gQ/aGRzz1Ms6OvvuOTdN4zn4FAHZ85vR6vwguGMI7nvBDh7EPQRiybBYI ds1Zyu/TIMt4xDwJJbHitxc0E2Fz3Wme5Sl3XRbMkzjNWJIGUQa90SQL4qjXU91iIXpqiM/vrvMg 9J0bQK4e0wRIhoTBb/rRNE7nXoZUTOeZfDyJU64f8zSNU9nte5nnhl50o599/EE+mC8mSaI754sw uJb9OKvuzlIvEjhX8xHQ6QICRX+2SIJyireByIgdPp+y9wmuWdj9gx6Dtomw/IDZfTZ8zuIkS7xU cEdCneL3lOA2zjjwMBLMixAKHjKCTFkQgaJHE+5s9AgyYeN2PHZfPnc833clDtsaDqN4mKQ8yxZD EstwzkFTfGENCLrSfC6ysSWhXSnEFdAeSXdsiQxE4U69UPB2pFMvD7PxRZrzlsczHiZj68MM5oHF ZjFyWqqrpEMqE3Jbk9LvKc4exVGWxiE7Jd0HjQBOpfkEyBEaBITJZlHsc9LvVv4ki2EQBdnwZAVH Fi6CuNF6NgABK7nwGtm0lA2FqaoluXJeFywS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aTNFWv5onlAkRWRs/QFWXc0M6IJVFrPGDcBI3jEzjQM7WyLnSYSbAq7CsnV3FBXpT4VXW 0+HL9f2v8mUrzbPXyqNTcqqFaWaqfyXrNhlVv2h8sgYGkWq9NVWd+kVw48iVuLLevkXzbUqolFjo OaY+BrJIh0f5nG7wSpSyIKNfkVCAlSNbSxzVwGRk1Zyr9PTZv8o31cr6BTmz1j0j/9eiklWEv1dl Ub7y1xBDuZOuksAr+tsPiYRVN6qCgTDwUFydejOIJmHuc7ZRicmd2UZ1iSrnE8h0jaPSSEZddIER BSQSb8JBbMQovAgicEN2Gi1lS9XTatIUGxiGDxbjVzprxui32KIhcbLJItog9e03AbH52jarqo40 9FsHmFbjk1CbzPidsdGImSxpYcgXi/8gLMviOFRH5uGDmHmpI2afdY41f/9pa6+Z/9nb3e7i/6/R an//6doTs94mZl3w71jgi6j0S/05EKziWaIw7Ecd8JMqP+/1BM/YMGZRnEfwVf9MgoRPvSDUv3ma 4hutvZ76Yxb/AgPhk1nMNrDc9oB9+x8bRc9NkNElWJBB/3+e/3x45r45vnCP3r97d3xBhdAEZ1Up O6C/C4IBNi5HWAoMwaewd8prZjakd5+nGslSXD74UKv3e6+3gZT9b0uva13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWv/39r/ACYoDMoAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"