#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=234a231cde648115421e952cdae44a8340a042df 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 H4sIAExWeWcAA+08/XPbNrL9WX8Fzm6GVCpRtuMkHV+VnOt81HeO47Hdy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfBuxGgB/7lzL4icZPHN529b0J4/fYqf28+fbtPv na0t+sRHz7eefbO9+/zJs52nO8+fPvlma3v7yfaTb9jWF6Cl0XKReSljX2Oq/4tt80+jXKSjqyAa 8eiWJYtsFkc7vY2NjZ6pFWzI3vKIp17G2cF337FpGs/ZLwDADk+dXu9nwQVDeMcTfugw9iEIQ5bN AsGuOEv5XRpkGY+YJ6EkVvz2kmYibK47zbM85a7LgnkSpxlL0iDKoDeaZEEc9XqqWyxETw3x+e1V HoS+cw3I1WOaAMmQMPhNP5rG6dzLkIrpPJOPJ3HK9WOepnEqu30v89zQi671s4/fywfzxSRJdOd8 EQZXsh9n1d1Z6kUC52o+AjpdQKDozxZJUE5xFIiM2OHzKXuf4JqF3d/rMWibCMv3mN1nwxcsTrLE SwV3JNQJfk8JbuOUAw8jwbwIoeAhI8iUBREoejThzkaPIBM2bsdj9+Vzx/N9V+KwreEwiodJyrNs MSSxDOccNMUX1oCgK83nIhtbEtqVQlwB7ZF0x5bIQBTu1AsFb0c69fIwG5+nOW95PONhMrY+zGAe WGwWI6eluko6pDIhtzUp/Z7i7EEcZWkcshPSfdAI4FSaT4AcoUFAmGwWxT4n/W7lT7IYBlGQDY9X cGThIogbrWcDELCSC2+QTUvZUJiqWpIr53XBIkH9U/7PPEjBYPktTx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pLKINX4QTuKGkWkcyNkaOVc6zAR4FZa1s6u4QG8qvMp6 Ony5vv9ZvmylefZGeXRKTrUwzUz1r2TdJqPqF41P1sAgUq23pqpTvwiuHbkSV9bbt2i+TQmVEgs9 x9THQBbp8Cif0w1eiVIWZPQrEgqwcmRriaMamIysmnOVnj77d/mmWlm/IGfWumfk/1pUsorwt6os ylf+GmIod9JVEnhNf/shkbDqRlUwEAYeiqtTbwbRJMx9zjYqMbkz26guUeV8ApmucVQayaiLLjCi gETiTTiIjRiFF0EEbshOo6VsqXpaTZpiA8PwwWL8SmfNGP0WWzQkTjZZRBukvv0mIDZf22ZV1ZGG fusA02p8EmqTGb8xNhoxkyUtDPli8R+EZVkch+rIPLwXMy91xOyzzrHm7z9t7TbzP7tPnnbx/9do tb//dOWJWW8Tsy74dyzwRVT6pf4cCFbxLFEY9oMO+EmVX/R6gmdsGLMoziP4qn8mQcKnXhDq3zxN 8Y3WXk/9MYt/g4HwySxmG1huu8e+/ctG0XMdZHQJFmTQ/4+zn/ZP3beH5+7B+3fvDs+pEJrgrCpl e/R3QTDAxuUIS4Eh+BT2TnnNzIb07vNUI1mKywcfavV+6/U2kLL/bel1rWtd61rXuta1rnWta13r Wte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWte61rWude3/W/sPWdtp7gB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"