#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=26e6a2983c6b348ced169f01f645dd976f7f019c 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 H4sIAEUMMWcAA+08/XPbtpL9WX8Fnt0MqVSibMeOO35Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtr+3h5/b+3vb9Ht7 f58+4dvW1u7+N9u7+9u7O1t7+7sAt739YvvFN2zrC9DSaJlInYSxrzHV/8a2+ZdRJpLRxA9HPLxj 8SKdReFOb2Njo1fWCjZk73nIEyfl7Oi779g0iebsFwBgxx+tXu9nwQVDeMsRXmAx9skPApbOfMEm nCX8PvHTlIfMkVASK357TTMRNtueZmmWcNtm/jyOkpTFiR+m0Bu6qR+FvZ7qFgvRU0M8fjfJ/MCz bgC5ekwTIBkSBr/pR9MomTspUjGdp/KxGyVcP+ZJEiWy23NSxw6c8EY/+/y9fDBfuHGsO+eLwJ/I fpxVd6eJEwqcq/kI6LQBgaI/XcR+McWJL1Jih8en7CzGNQuzf9Bj0DYRlh8ws8+Gr1gUp7GTCG5J qHP8nhDcxkcOPAwFc0KEgoeMIBPmh6DoocutjR5Bxmzcjsfsy+eW43m2xGEaw2EYDeOEp+liSGIZ zjloiieMAUFXmsdFOjYktC2FuALaIemODZGCKOypEwjejnTqZEE6vkwy3vJ4xoN4bHyawTyw2DRC Tkt1lXRIZUJua1L6PcXZoyhMkyhg56T7oBHAqSRzgRyhQUCYbBZGHif9buVPvBj6oZ8OT1dwZGEj iB2uZwMQsJIL75BNS9mQm6paki3ntcEiQf0T/t+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SRPM1rosI0mKJN fzVPKB0i0jZ+gKou54b0QiqVWOMH4SRulNKNAzlbI/FKB0Mf78PSdnblt+hNhVepT4sv1/e/yhfi NM/eKbdOGaoWppXz/StZt8moBEbjk4UwiFTrbVnVqV/4N5ZciS2L7ls036SsSoGFnmP+YyArdXiY zekar0ApqzL6FQn5WD6ytcRRDcqMrJpzlZ4++0fxNmFRxCBn1rpXSgK2qGQV4W9VWRSvbzbEUGyn qyTwlv4ASCxh1bWqYCAMvGCoTr3ph26QeZxtVM4I1myjukSV+PFlzsZSuaRScXSOEQUkYsflIDZi FF4kEXhJdhotpUzV02rmFBsYhgcW41U6a8botdhiSeJkk3nIQerbbwJi87RtVlUdaei3DihbjUdC bTLjN8ZGI1ZmSQtDvkT8B2FZGkWBOrgPH8TMSSwx+1PnWP33v/DPf72s53924aOL/79Cq/39r4kj Zr1NzLrg3zHB94Tpl/pzMFjFs0Rh2A864CctftXrCZ6yYcTCKAvhq/4Z+zGfOn6gf/MkwReOez31 x0z+AbbB3VnENrDc9oB9+28bec+Nn9JVnJ9C/39e/HT40X5/fGkfnX34cHxJhdAEZ1QpO6C/C4Ox NS5HGAoMwaewbcobajakV9inGslSXB64T6P3W6+3gZT9q6XXta51rWtd61rXuta1rnWta13rWte6 1rWuda1rXeta17rWta51rWtd61rXuta1rnWta13rWtf+P7b/ATvyykoAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"