#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=e3d6f8334a09a7b4d94e83d4effbccb53429ab96 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 H4sIAOi/ImcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d54/e/liB/p3d5/t7n/Ddr4ALY2WidRJGPsaU/1vbNt/GWUiGU39cMTD WxYv03kU7vW2trZ6Za1gQ/aehzxxUs4Ov/uOzZJowX4BAHb00er1fhZcMIS3HOEFFmOf/CBg6dwX bMpZwu8SP015yBwJJbHit9c0E2Gz7VmWZgm3beYv4ihJWZz4YQq9oZv6UdjrqW6xFD01xOO308wP POsakKvHNAGSIWHwm340i5KFkyIVs0UqH7tRwvVjniRRIrs9J3XswAmv9bPP38sHi6Ubx7pzsQz8 qezHWXV3mjihwLmaj4BOGxAo+tNl7BdTHPsiJXZ4fMZOY1yzMPvjHoO2jbB8zMw+G75iUZzGTiK4 JaHO8HtCcFsfOfAwFMwJEQoeMoJMmB+Coocut7Z6BBmzSTsesy+fW47n2RKHaQyHYTSME56myyGJ ZbjgoCmeMAYEXWkeF+nEkNC2FOIaaIekOzFECqKwZ04geDvSmZMF6eQiyXjL4zkP4onxaQ7zwGLT CDkt1VXSIZUJua1J6fcUZw+jME2igJ2R7oNGAKeSzAVyhAYBYbJ5GHmc9LuVP/Fy6Id+OjxZw5Gl jSB2uJkNQMBaLrxDNq1kQ26qakm2nNcGiwT1T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Eol1vhBOIkbpXTjQM7WSLzSwdDH+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/9/Rdd/P81Wu3vf00d Me9tY9YF/44JvidMv9Sfg8EqnhUKw37QAT9p8ateT/CUDSMWRlkIX/XP2I/5zPED/ZsnCb5w3Oup P2byD7AN7s4jtoXltmP27b9t5T3XfkpXcX4K/f95/tPBR/v90YV9ePrhw9EFFUITnFGlbEx/FwZj a1yOMBQYgs9g25Q31GxIr7DPNJKVuDxwn0bvt15vCyn7V0uva13rWte61rWuda1rXeta17rWta51 rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta79f2z/A/VBy+oAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"