#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c3a5633be0649c8f104558fd3d736a3a048461fa 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 H4sIAHa7EmcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799XW7t6Lvd2d3W+2trdfbO98w7a+AC2NlonUSRj7GlP9b2ybfxllIhlN/HDE wzsWL9JZFO70NjY2emWtYEP2gYc8cVLODr/7jk2TaM5+AQB2dG71ej8LLhjCW47wAouxT34QsHTm CzbhLOH3iZ+mPGSOhJJY8dsbmomw2fY0S7OE2zbz53GUpCxO/DCF3tBN/Sjs9VS3WIieGuLxu0nm B551A8jVY5oAyZAw+E0/mkbJ3EmRiuk8lY/dKOH6MU+SKJHdnpM6duCEN/rZ5+/lg/nCjWPdOV8E /kT246y6O02cUOBczUdApw0IFP3pIvaLKY59kRI7PD5lpzGuWZj9/R6DtomwfJ+ZfTZ8zaI4jZ1E cEtCneH3hOA2zjnwMBTMCREKHjKCTJgfgqKHLrc2egQZs3E7HrMvn1uO59kSh2kMh2E0jBOeposh iWU456ApnjAGBF1pHhfp2JDQthTiCmiHpDs2RAqisKdOIHg70qmTBen4Msl4y+MZD+Kx8WkG88Bi 0wg5LdVV0iGVCbmtSen3FGcPozBNooCdke6DRgCnkswFcoQGAWGyWRh5nPS7lT/xYuiHfjo8WcGR hY0gdrieDUDASi68RzYtZUNuqmpJtpzXBosE9U/4f2d+AgbL73iyY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JNfzVPKB0i0jZ+gKou54b0QiqVWOMH4SRulNKNAzlbI/FKB0Mf78PSdnblt+hNhVepT4sv1/e/ yhfiNM/eK7dOGaoWppXz/StZt8moBEbjk4UwiFTrbVnVqV/4N5ZciS2L7ls036SsSoGFnmP+YyAr dXiYzekar0ApqzL6FQn5WD6ytcRRDcqMrJpzlZ4++0fxNmFRxCBn1rpXSgK2qGQV4W9VWRSvbzbE UGynqyTwjv4ASCxh1bWqYCAMvGCoTr3ph26QeZxtVM4I1myjukSV+PFlzsZSuaRScXSOEQUkYsfl IDZiFF4kEXhJdhotpUzV02rmFBsYhgcW41U6a8botdhiSeJkk3nIQerbbwJi87RtVlUdaei3Dihb jUdCbTLjN8ZGI1ZmSQtDvkT8B2FZGkWBOrgPH8TMSSwx+1PnWP33v/DPf72s53924bjQxf9fodX+ /tfEEbPeJmZd8O+Y4HvC9Ev9ORis4lmiMOwHHfCTFr/u9QRP2TBiYZSF8FX/jP2YTx0/0L95kuAL x72e+mMm/wDb4O4sYhtYbrvPvv23jbznxk/pKs5Pof8/L346OLc/HF3ah6cfPx5dUiE0wRlVyvbp 78JgbI3LEYYCQ/ApbJvyhpoN6RX2qUayFJcH7tPo/dbrbSBl/2rpda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1/4/tfwDxu+0bAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"