#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=fd5cc5fb3c9e39585d1177bed45050b1234d5de6 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 H4sIAK94gWcAA+08a3PbOJLzWb8Ca0+KVEaiZMeZTHlHyXmcx3g3cVyxZ3NTPg+LFiGLMUXyCNK2 dmvmt193AyDBhyR7J8ld1RFViSSw0Wj0Cw1000vvWoyW8J+78ILISZbffP42hvbs6VP83Hn2dId+ 747H9ImPno2//2Zn79neePfZ3s7O99+Md3aejJ98w8ZfgJZGy0XmpYx9jan+L7btv4xykY4ug2jE oxuWLLN5HO32tra2eqZWsCF7wyOeehlnh999x2ZpvGC/AgA7+uD0er8ILhjCO57wQ4exj0EYsmwe CHbJWcpv0yDLeMQ8CSWx4rcXNBNhc91ZnuUpd10WLJI4zViSBlEGvdE0C+Ko11PdYil6aojPby7z IPSdK0CuHtMESIaEwW/60SxOF16GVMwWmXw8jVOuH/M0jVPZ7XuZ54ZedKWfffpBPlgsp0miOxfL MLiU/Tir7s5SLxI4V/MR0OkCAkV/tkyCcoq3gciIHT6fsfcJrlnY/f0eg7aNsHyf2X02fM7iJEu8 VHBHQp3g95Tgtj5w4GEkmBchFDxkBJmyIAJFj6bc2eoRZMIm7XjsvnzueL7vShy2NRxG8TBJeZYt hySW4YKDpvjCGhB0pflcZBNLQrtSiGugPZLuxBIZiMKdeaHg7UhnXh5mk7M05y2P5zxMJtbHOcwD i81i5LRUV0mHVCbktial31OcPYyjLI1DdkK6DxoBnErzKZAjNAgIk82j2Oek3638SZbDIAqy4fEa jixdBHGjzWwAAtZy4TWyaSUbClNVS3LlvC5YJKh/yv87D1IwWH7D0yW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