#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=19240aa871c112e03c1d6021ad3fd65da3a20c85 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 H4sIAK7JPGcAA+08/VPjRrL52X/FHGRL8saWMQvZFBfvPsJ+hPdYoIDcvhRHVEIaYy2ypKeRAN9V 8re/7p4ZfduGS3bvrk5TtWt99PT09Nf0TLdYOLditID/7Lnjh1a8+OqPb1vQXu7u4u/45e6Y7scv X9IvXG1t7bz8arzzcvxyvLOzO4b34/GLrZdfsa3PQEujZSJ1Esa+xFD/im3zT6NMJKNrPxzx8I7F i3QWhdu9jY2NXlkr2JC95yFPnJSzg2++YdMkmrOfAYAdnlm93k+CC4bwliO8wGLsox8ELJ35gl1z lvD7xE9THjJHQkmsePWaRiJstj3N0izhts38eRwlKYsTP0zhaeimfhT2euqxWIie6uLxu+vMDzzr BpCr1zQAkiFh8Eq/mkbJ3EmRiuk8la/dKOH6NU+SKJGPPSd17MAJb/S7T9/JF/OFG8f64XwR+Nfy OY6qH6eJEwocq/kK6LQBgaI/XcR+McSRL1Jih8en7CTGOQuzv9dj0DYRlu8xs8+Gr1gUp7GTCG5J qFO8Tghu44wDD0PBnBCh4CUjyIT5ISh66HJro0eQMZu04zH78r3leJ4tcZjGcBhGwzjhaboYkliG cw6a4gljQNCV5nGRTgwJbUshroB2SLoTQ6QgCnvqBIK3I506WZBOLpKMt7ye8SCeGB9nMA5MNo2Q 01JdJR1SmZDbmpR+T3H2IArTJArYKek+aARwKslcIEdoEBAmm4WRx0m/W/kTL4Z+6KfD4xUcWdgI Yofr2QAErOTCO2TTUjbkpqqmZMtxbbBIUP+E/1/mJ2Cw/I4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z mqgwDaZo01/NE0qHiLSNH6Cqy7khvZBKJdb4QTiJG6V040CO1ki80g7Qx/OwtJ1d+Sl6U+FV6tPi y/X9z/KDOM2zd8qtU4aqhWnlfP9K1m0yKoHR+GQhDCLVeltWdXou/BtLzsSWRfctmm9SVqXAQu8x /zGQlTo8zOZ0jFeglFUZ/YqEfCwf2VriqAZlRlbNuUpPn/29+JqwKGKQI2vdKyUBW1SyivDXqiyK zzcbYiiW01USeEt/ACSWsOpYVTAQBp4kVIfe9EM3yDzONiqbAWu2UZ2iSvz4MmdjqVxSqTg6x4gC ErHjchAbMQpPjAi8JDuNllKm6m01c4oNDMMDi/EqD2vG6LXYYkniZJN5yEHq228CYvO0bVZVHWno t3YoW41HQm0y41fGRiNWZkkLQz5H/AdhWRpFgdqhDx/EzEksMftDx1j997/wz399W8//7OyMu/j/ S7Ta3/+6dsSst4lZF/w7JvidMN2pPweDVTxLFIZ9rwN+0uJXvZ7gKRtGLIyyEC71bezHfOr4gb7n SYIfHPd66o+Z/B1sg7uziG1gue0e+/q/NvInN35KZ25+Cs//9/zH/TP7/eGFfXDy4cPhBRVCE5xR pWyP/i4MxtY4HWEoMASfwrIpj6LZkD5hn2okS3F54D6N3q+93gZS9s+WXte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWta51rWtd+09s/w8lS0vdAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"