#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=a6c61d76f3e8e484439ac278419c01233b90a1bc 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 H4sIAC8AG2cAA+08/XPbtpL9WX8Fnt0MqVSibMeJO35Vcq7zUd85tsd2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv0wrkVowX8Z88dP7TixTd/ftuCtvfyJX5u773cpt/b e3v0Cd+2tnb3vtne3dt69XJvb28b+re3X+zsfcO2vgAtjZaJ1EkY+xpT/W9sm38ZZSIZTfxwxMM7 Fi/SWRTu9DY2NnplrWBD9oGHPHFSzg6/+45Nk2jOfgEAdnRu9Xo/Cy4YwluO8AKLsU9+ELB05gs2 4Szh94mfpjxkjoSSWPHbG5qJsNn2NEuzhNs28+dxlKQsTvwwhd7QTf0o7PVUt1iInhri8btJ5gee dQPI1WOaAMmQMPhNP5pGydxJkYrpPJWP3Sjh+jFPkiiR3Z6TOnbghDf62efv5YP5wo1j3TlfBP5E 9uOsujtNnFDgXM1HQKcNCBT96SL2iymOfZESOzw+ZacxrlmY/f0eg7aJsHyfmX02fM2iOI2dRHBL Qp3h94TgNs458DAUzAkRCh4ygkyYH4Kihy63NnoEGbNxOx6zL59bjufZEodpDIdhNIwTnqaLIYll OOegKZ4wBgRdaR4X6diQ0LYU4gpoh6Q7NkQKorCnTiB4O9KpkwXp+DLJeMvjGQ/isfFpBvPAYtMI OS3VVdIhlQm5rUnp9xRnD6MwTaKAnZHug0YAp5LMBXKEBgFhslkYeZz0u5U/8WLoh346PFnBkYWN IHa4ng1AwEouvEc2LWVDbqpqSbac1waLBPVP+H9nfg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VPKF0iEjb+AGqupwb0gupVGKNH4STuFFKNw7kbI3EKx0MfbwPS9vZld+iNxVepT4tvlzf/ypf iNM8e6/cOmWoWphWzvevZN0moxIYjU8WwiBSrbdlVad+4d9YciW2LLpv0XyTsioFFnqO+Y+BrNTh YTana7wCpazK6Fck5GP5yNYSRzUoM7JqzlV6+uwfxduERRGDnFnrXikJ2KKSVYS/VWVRvL7ZEEOx na6SwDv6AyCxhFXXqoKBMPCCoTr1ph+6QeZxtlE5I1izjeoSVeLHlzkbS+WSSsXROUYUkIgdl4PY iFF4kUTgJdlptJQyVU+rmVNsYBgeWIxX6awZo9diiyWJk03mIQepb78JiM3TtllVdaSh3zqgbDUe CbXJjN8YG41YmSUtDPkS8R+EZWkUBergPnwQMyexxOxPnWP13//CP//1qhT/v8L8z+6rrS7+/xqt 9ve/Jo6Y9TYx64J/xwTfE6Zf6s/BYBXPEoVhP+iAn7T4da8neMqGEQujLISv+mfsx3zq+IH+zZME Xzju9dQfM/kH2AZ3ZxHbwHLbffbtv23kPTd+Sldxfgr9/3nx08G5/eHo0j48/fjx6JIKoQnOqFK2 T38XBmNrXI4wFBiCT2HblDfUbEivsE81kqW4PHCfRu+3Xm8DKftXS69rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rv1/bP8DsvLoBgB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"