#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=597fb4fdcdea2213993d7a22443be5b0bfa46502 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 H4sIAEcYNGcAA+08/XPbtpL9WX8Fnt0MqVSibMdOOn5Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuC9mpvDz+3X+1t0+/t V6/oE75tbe2++mZ799X23tb2i1e7u99sbW+/2N76hm19AVoaLROpkzD2Nab639g2/zLKRDKa+OGI h3csXqSzKNzpbWxs9MpawYbsAw954qScHX73HZsm0Zz9AgDs6Nzq9X4WXDCEtxzhBRZjn/wgYOnM F2zCWcLvEz9NecgcCSWx4rc3NBNhs+1plmYJt23mz+MoSVmc+GEKvaGb+lHY66lusRA9NcTjd5PM DzzrBpCrxzQBkiFh8Jt+NI2SuZMiFdN5Kh+7UcL1Y54kUSK7PSd17MAJb/Szz9/LB/OFG8e6c74I /Insx1l1d5o4ocC5mo+AThsQKPrTRewXUxz7IiV2eHzKTmNcszD7+z0GbRNh+T4z+2z4mkVxGjuJ 4JaEOsPvCcFtnHPgYSiYEyIUPGQEmTA/BEUPXW5t9AgyZuN2PGZfPrccz7MlDtMYDsNoGCc8TRdD EstwzkFTPGEMCLrSPC7SsSGhbSnEFdAOSXdsiBREYU+dQPB2pFMnC9LxZZLxlsczHsRj49MM5oHF phFyWqqrpEMqE3Jbk9LvKc4eRmGaRAE7I90HjQBOJZkL5AgNAsJkszDyOOl3K3/ixdAP/XR4soIj CxtB7HA9G4CAlVx4j2xayobcVNWSbDmvDRYJ6p/w/878B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Ea TNGmv5onlA4RaRs/QFWXc0N6IZVKrPGDcBI3SunGgZytkXilg6GP92FpO7vyW/SmwqvUp8WX6/tf 5QtxmmfvlVunDFUL08r5/pWs22RUAqPxyUIYRKr1tqzq1C/8G0uuxJZF9y2ab1JWpcBCzzH/MZCV OjzM5nSNV6CUVRn9ioR8LB/ZWuKoBmVGVs25Sk+f/aN4m7AoYpAza90rJQFbVLKK8LeqLIrXNxti KLbTVRJ4R38AJJaw6lpVMBAGXjBUp970QzfIPM42KmcEa7ZRXaJK/PgyZ2OpXFKpODrHiAISseNy EBsxCi+SCLwkO42WUqbqaTVzig0MwwOL8SqdNWP0WmyxJHGyyTzkIPXtNwGxedo2q6qONPRbB5St xiOhNpnxG2OjESuzpIUhXyL+g7AsjaJAHdyHD2LmJJaY/alzrP77X/jnv17W8z+7uztd/P81Wu3v f00cMettYtYF/44JvidMv9Sfg8EqniUKw37QAT9p8eteT/CUDSMWRlkIX/XP2I/51PED/ZsnCb5w 3OupP2byD7AN7s4itoHltvvs23/byHtu/JSu4vwU+v/z4qeDc/vD0aV9ePrx49ElFUITnFGlbJ/+ LgzG1rgcYSgwBJ/CtilvqNmQXmGfaiRLcXngPo3eb73eBlL2r5Ze17rWta51rWtd61rXuta1rnWt a13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta137/9j+B57zto4AeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"