#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=c67d610cffdf752edea5998eee50333e6f03c4d2 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 H4sIAIkSgmYAA+08/XPbNrL9WX8Fzm6GVCrRH3E+Rlcl5zof9bvE8dju9XV8KocmIYkxRfIRlG3d Tfu33+4CIAmKkuxrknszR8zEksjFYrG7WOwHkIV3LXZOjk/+59AV86tJ5qVTJ11881nbLrRnBwf4 uff86R793nv+nD6hPd198uSbvYNnB7sHe3t7+7vf7MKfg2ffsN3PS0Zzm4vcyxj7GkP9f2xbW1ud RaMOdPDVOEtmzHXH83yecddl4SxNspylWRjn8DT28zCJOxLsah5GgYaIw/iT50bhVeWdUzzUUFEy 6bGjjx9Oj9+/OTt3/3Z4dnx4cnHe6bhsiC87nW128fH1xwET02QO2KfeDWcBT3kc8NgPuWC3YT6F t+5VGHvZonP20/s35+7pL9DfokF3aNB+No+46KcLR0ytTqcT8DE7wRfvcLZ2Nu8OOgxaDP2yuQNT wl/wzU9mMx7ntvWOxzzzch6wqwV7JCz2CPgSezPgSreA9kQQ4fwyIMW2iK/4h55bJZjvK3IrMG42 j/MQ0OVc5ABh9QjaaDBxMby0dnZmCz9Nd1QPa9QAOvPyLLwbLvNWUbHNcFAG00vDiGcd2SeMaUrI PKIJn1j0jticAN9ty5V8JYWR03skdvLMi0UE/HHyuxyZUyDrMk+w8aBTnQQMcBmFMXcEUJnaXTZO MoYPWBiz8UiSmGZ8HN4hLe6ExzTSziPh0NyNEQg6mefpPCfMquN3zCI+ssrvqTWScnZoErbqZTLQ guH6SRiJPpDVn8fhXU0YOAXzCehzFPphDtJB0e6I6S0olpST5GK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