#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0642810d5a5876e78d43371e4b8f6bc8b52d5638 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 H4sIAOSMGWcAA+08a3PbRpL5zF8xK8UF0CFB6mE7pQ3tU+RHdCdLKklZX0qnoCBgKMICARwGkMTd Sn77dffM4E1S2sTeqztMlU1y0NPT06/pmW5o4dyK0QL+s+eOH1rx4ps/v42hvXrxAj+3Xr3Yot9b r17RJ3wbj3dffbO1+2r8cmf8cnu88814a2sHPtj4C9DSaJlInYSxrzHV/8a2+ZdRJpLRtR+OeHjH 4kU6i8Lt3sbGRq+sFWzIPvCQJ07K2cF337FpEs3ZLwDADs+sXu9nwQVDeMsRXmAx9skPApbOfMGu OUv4feKnKQ+ZI6EkVvz2hmYibLY9zdIs4bbN/HkcJSmLEz9MoTd0Uz8Kez3VLRaip4Z4/O468wPP ugHk6jFNgGRIGPymH02jZO6kSMV0nsrHbpRw/ZgnSZTIbs9JHTtwwhv97PP38sF84cax7pwvAv9a 9uOsujtNnFDgXM1HQKcNCBT96SL2iymOfJESOzw+ZScxrlmY/b0eg7aJsHyPmX02fM2iOI2dRHBL Qp3i94TgNs448DAUzAkRCh4ygkyYH4Kihy63NnoEGbNJOx6zL59bjufZEodpDIdhNIwTnqaLIYll OOegKZ4wBgRdaR4X6cSQ0LYU4gpoh6Q7MUQKorCnTiB4O9KpkwXp5CLJeMvjGQ/iifFpBvPAYtMI OS3VVdIhlQm5rUnp9xRnD6IwTaKAnZLug0YAp5LMBXKEBgFhslkYeZz0u5U/8WLoh346PF7BkYWN IHa4ng1AwEouvEc2LWVDbqpqSbac1waLBPVP+H9nfgI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