#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=2dbc2cb24ebd242b20471b875ab2418604923fa7 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 H4sIACHEKGcAA+08/XPbtpL9WX8Fnt0MqVSiLMdJOn5Vcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/wcv3w+pt/j ly/pE77t7Oy9/Ga893K8O94bv8D+8fjZeO8btvMFaGm0TKROwtjXmOp/Y9v+yygTyWjqhyMe3rJ4 mc6jcLe3tbXVK2sFG7L3POSJk3J2+N13bJZEC/YLALCjj1av97PggiG85QgvsBj75AcBS+e+YFPO En6X+GnKQ+ZIKIkVv72mmQibbc+yNEu4bTN/EUdJyuLED1PoDd3Uj8JeT3WLpeipIR6/nWZ+4FnX gFw9pgmQDAmD3/SjWZQsnBSpmC1S+diNEq4f8ySJEtntOaljB054rZ99/l4+WCzdONadi2XgT2U/ zqq708QJBc7VfAR02oBA0Z8uY7+Y4tgXKbHD4zN2GuOahdnf7zFo2wjL95nZZ8NXLIrT2EkEtyTU GX5PCG7rIwcehoI5IULBQ0aQCfNDUPTQ5dZWjyBjNmnHY/blc8vxPFviMI3hMIyGccLTdDkksQwX HDTFE8aAoCvN4yKdGBLalkJcA+2QdCeGSEEU9swJBG9HOnOyIJ1cJBlveTznQTwxPs1hHlhsGiGn pbpKOqQyIbc1Kf2e4uxhFKZJFLAz0n3QCOBUkrlAjtAgIEw2DyOPk3638ideDv3QT4cnaziytBHE DjezAQhYy4V3yKaVbMhNVS3JlvPaYJGg/gn/78xPwGD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jQM7WSLzSwdDH+7C0nV35LXpT4VXq0+Kr9f2v8oU4 zbN3yq1ThqqFaeV8/1rWbTMqgdH4ZCEMItV6W1Z16hf+tSVXYsui+xbNNymrUmCh55j/GMhKHR5m C7rGK1DKqox+RUI+lo/srHBUgzIjq+ZcpafP/lG8TVgUMciZte6VkoAtKllF+FtVFsXrmw0xFNvp Ogm8pT8AEktYda0qGAgDLxiqU2/7oRtkHmdblTOCNd+qLlElfnyZs7FULqlUHJ1jRAGJ2HE5iI0Y hRdJBF6SnUZLKVP1tJo5xQaG4YHFeJXOmjF6LbZYkjjZZB5ykPr2m4DYPG2bVVVHGvqtA8pW45FQ m8z4jbHRiJVZ0sKQLxH/QViWRlGgDu7DezF3EkvM/9Q51v/9L/zzXy/q+Z+9vRdd/P81Wu3vf00d Me9tY9YF/44JvidMv9Sfg8EqnhUKw37QAT9p8ateT/CUDSMWRlkIX/XP2I/5zPED/ZsnCb5w3Oup P2byD7AN7s4jtoXltvvs23/bynuu/ZSu4vwU+v/z/KeDj/b7owv78PTDh6MLKoQmOKNK2T79XRiM rXE5wlBgCD6DbVPeULMhvcI+00hW4vLAfRq933q9LaTsXy29rnWta13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2/7H9D0Xe5HIAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"