#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=95dcc9db7ee67733fd335d3988aa63bf979a3082 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 H4sIANcjjmYAA+08/XPbNrL9WX8Fzm6GVCrR30lGVyXnOh/1u8TxxO71dXwqhyYhiTFF8hGUbd1N +7ff7gIgCYqSnGuSezNHzCSSyMVisbtY7AfghXcjds5Oz/7n2BXz60nmpVMnXXzzWdsutCeHh/i5 9/Roj37vPX1Kn9COdg8Ovtk7fHJ4cLi/9+Tg6Jvdvf3dJ0ffsN3PS0Zzm4vcyxj7GkP9f2xbW1ud RaMOdPDVOEtmzHXH83yecddl4SxNspylWRjn8DT28zCJOxLseh5GgYaIw/ij50bhdeWdUzzUUFEy 6bGT9+/OT9+++nDh/u34w+nx2eVFp+OyIb7sdLbZ5fuX7wdMTJM5YJ96t5wFPOVxwGM/5ILdhfkU 3rrXYexli86Hn96+unDPf4H+Fg26Q4P2s3nERT9dOGJqdTqdgI/ZGb54g7O1s3l30GHQYuiXzR2Y Ev6Cb34ym/E4t603POaZl/OAXS/YI2GxR8CX2JsBV7oFtCeCCOeXASm2RXzF/+i5VYL5viK3AuNm 8zgPAV3ORQ4QVo+gjQYTF8Mra2dntvDTdEf1sEYNoDMvz8L74TJvFRXbDAdlML00jHjWkX3CmKaE zCOa8IlF74jNCfDdtlzJV1IYOb1HYifPvFhEwB8nv8+ROQWyLvMEGw861UnAAFdRGHNHAJWp3WXj JGP4gIUxG48kiWnGx+E90uJOeEwj7TwSDs3dGIGgk3meznPCrDp+xyziI6v8nlojKWeHJmGrXiYD LRiun4SR6ANZ/Xkc3teEgVMwn4A+R6Ef5iAdF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