#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=cdee8ea8ec52bb107002579c54caf76d88333e5a 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 H4sIAGLcdmcAA+08a3PbOJLzWb8Ca0+KVEaibMeeTHlHyXmcx3jXcVy2Z3NTPg+LFiGLMUXyCNK2 dmvmt193AyDBhyRnJ8ld1RFViSSw0Wj0Cw100wvvVowW8J8794LISRbffP62Be353h5+bj/f26bf O1tb9ImPnm99/8327vNne3t73wPIN1vb28+2nn3Dtr4ALY2Wi8xLGfsaU/1fbJt/GeUiHV0H0YhH dyxZZLM42ultbGz0TK1gQ/aWRzz1Ms4Ov/uOTdN4zn4FAHZ05vR6vwguGMI7nvBDh7EPQRiybBYI ds1Zyu/TIMt4xDwJJbHit5c0E2Fz3Wme5Sl3XRbMkzjNWJIGUQa90SQL4qjXU91iIXpqiM/vrvMg 9J0bQK4e0wRIhoTBb/rRNE7nXoZUTOeZfDyJU64f8zSNU9nte5nnhl50o599/EE+mC8mSaI754sw uJb9OKvuzlIvEjhX8xHQ6QICRX+2SIJyiuNAZMQOn0/Z+wTXLOz+fo9B20RYvs/sPhu+YHGSJV4q uCOhTvF7SnAbZxx4GAnmRQgFDxlBpiyIQNGjCXc2egSZsHE7Hrsvnzue77sSh20Nh1E8TFKeZYsh iWU456ApvrAGBF1pPhfZ2JLQrhTiCmiPpDu2RAaicKdeKHg70qmXh9n4Is15y+MZD5Ox9WEG88Bi sxg5LdVV0iGVCbmtSen3FGcP4yhL45Cdku6DRgCn0nwC5AgNAsJksyj2Oel3K3+SxTCIgmx4soIj CxdB3Gg9G4CAlVx4g2xayobCVNWSXDmvCxYJ6p/y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QFWXc0M6IJVFrPGDcBI3jEzjQM7WyLnSYSbAq7CsnV3FBXpT4VXW 0+HL9f2v8mUrzbM3yqNTcqqFaWaqfyXrNhlVv2h8sgYGkWq9NVWd+kVw48iVuLLevkXzbUqolFjo OaY+BrJIh0f5nG7wSpSyIKNfkVCAlSNbSxzVwGRk1Zyr9PTZv8o31cr6BTmz1j0j/9eiklWEv1dl Ub7y1xBDuZOuksBr+tsPiYRVN6qCgTDwUFydejOIJmHuc7ZRicmd2UZ1iSrnE8h0jaPSSEZddIER BSQSb8JBbMQovAgicEN2Gi1lS9XTatIUGxiGDxbjVzprxui32KIhcbLJItog9e03AbH52jarqo40 9FsHmFbjk1CbzPidsdGImSxpYcgXi/8gLMviOFRH5uGDmHmpI2afdY41f/9pa7eZ/9nd2evi/6/R an//6doTs94mZl3w71jgi6j0S/05EKziWaIw7Ecd8JMqv+j1BM/YMGZRnEfwVf9MgoRPvSDUv3ma 4hutvZ76Yxb/AgPhk1nMNrDcdp99+x8bRc9NkNElWJBB/3+e/3xw5r49unAP3797d3RBhdAEZ1Up 26e/C4IBNi5HWAoMwaewd8prZjakd5+nGslSXD74UKv3e6+3gZT9b0uva13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWv/39r/ABmkzTkAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"