#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=996345d7f317ecb93c386a493e400e213d45e778 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 H4sIAKgMXWYAA+08a3PbRpL+zF8xkeIC6JCgJMuOixvap8iPaNeWVZayvpROQUHEUIQFAjgMIIm7 lfz26+554ElS3sTeulpMlS1y0NPT06/p6R5w6V2L0RL+cxdeEDnJ8sGf33agff/kCf2FVvu7u7Oz //2D3f2ne9/v7Tzd3d97sLP7GD48YDtfgJZGy0XmpYw9SOM4Wwe36fn/07b9zSgX6egyiEY8umHJ MpvH0V5va2urV9YKNmRveMRTL+Ps8Lvv2CyNF+wXAGBHH5xe72fBBUN4xxN+6DD2MQhDls0DwS45 S/ltGmQZj5gnoSRW/PSCZiJsrjvLszzlrsuCRRKnGUvSIMqgN5pmQRz1eqpbLEVPDfH5zWUehL5z BcjVY5oAyZAw+Ek/msXpwsuQitkik4+nccr1Y56mcSq7fS/z3NCLrvSzT8/kg8VymiS6c7EMg0vZ j7Pq7iz1IoFzNR8BnS4gUPRnyyQopngbiIzY4fMZe5/gmoXdH/cYtG2E5WNm99nwOYuTLPFSwR0J dYKfU4Lb+sCBh5FgXoRQ8JARZMqCCBQ9mnJnq0eQCZu047H78rnj+b4rcdjWcBjFwyTlWbYckliG Cw6a4gtrQNCV5nORTSwJ7UohroH2SLoTS2QgCnfmhYK3I515eZhNztKctzye8zCZWB/nMA8sNouR 01JdJR1SmZDbmpR+T3H2MI6yNA7ZCek+aARwKs2nQI7QICBMNo9in5N+t/InWQ6DKMiGx2s4snQR xI02swEIWMuF18imlWwwpqqW5Mp5XbBIUP+U/28epGCw/IanSzYLeOgX3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kvGhGqizfTioHtcphzchbVP2OeiULrfc+jkeCV0JROZT9sDEOteTgyl6Ar09zOAOxPbkp qKQK3vtcfxooZlZrpC8t/o/6K+4Pr5W1eT+TEbzQCJHaCSuziFyaRqJmVvjkRHvji+KOHF1mq95i 22b2VRhfwuEPjuF9FdXKj9MQ5E+fDTSSU3N7ftPrEdT9nV5FDJ/l8WiiNQ5PruxzLAGXX4PX3G0E RbSzyLWutkViYt2HrkR5iNAG5zqqP88Wle6gpa20RvXbCTV73By/qVR2JZCV+aLXeP/V/GiC78vp huyXg7+duicHZz+p7z6cxEs/nyB/xQC8ehInOd7s8V9UkJNir4oQjZW0exQZVMkXbhXhtjWLYyzl yqHVUyWCdvXIL9F8fpPFcagK+sM7MfdSR8z/1DnW//4X/vzX01r9b39v93FX//sarfb7X5eemPe2 8dYl/o4JvidM39TPwWzT3tOqMOwHXcGjXMfzXg+iPTaMWRTnEXzUX5Mg4TMvCPV3nqb4wnGvp37M 5J9g9nw6j9kWplvG7Nv/2jI9V0FGV3SCDPr/+/Sngw/um6Mz9/D9u3dHZ5QIIzirStmYfhcGK2G4 HGEpMASfBZEvb66xIb3CPtNIVuLy44hbvd96vS2k7N8tva51rWtd61rXuta1rnWta13rWte61rWu da1rXeta17rWta51rWtd61rXuta1rnWta13rWte69p/Y/g8lLtOlAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"