#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=144529e86e40166da0efab8e0f7ebf7a09fdcb1b 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 H4sIACYhJGcAA+08a3PbRpL5zF8xK8UF0CFB6mE7pQ3tU+RHdCdLKklZX0qnoCBgKMICARwGkMTd Sn77dffM4E1S2sTeqztMlU1y0NPT06/pmW5o4dyK0QL+s+eOH1rx4ps/v42hvXrxAj+3Xr3Yot9b r17RJ3wbj3dffbO1+2pra7w93hlvfzPe2tp+Nf6Gjb8ALY2WidRJGPsaU/1vbJt/GWUiGV374YiH dyxepLMo3O5tbGz0ylrBhuwDD3nipJwdfPcdmybRnP0CAOzwzOr1fhZcMIS3HOEFFmOf/CBg6cwX 7JqzhN8nfprykDkSSmLFb29oJsJm29MszRJu28yfx1GSsjjxwxR6Qzf1o7DXU91iIXpqiMfvrjM/ 8KwbQK4e0wRIhoTBb/rRNErmTopUTOepfOxGCdePeZJEiez2nNSxAye80c8+fy8fzBduHOvO+SLw r2U/zqq708QJBc7VfAR02oBA0Z8uYr+Y4sgXKbHD41N2EuOahdnf6zFomwjL95jZZ8PXLIrT2EkE tyTUKX5PCG7jjAMPQ8GcEKHgISPIhPkhKHrocmujR5Axm7TjMfvyueV4ni1xmMZwGEbDOOFpuhiS WIZzDpriCWNA0JXmcZFODAltSyGugHZIuhNDpCAKe+oEgrcjnTpZkE4ukoy3PJ7xIJ4Yn2YwDyw2 jZDTUl0lHVKZkNualH5PcfYgCtMkCtgp6T5oBHAqyVwgR2gQECabhZHHSb9b+RMvhn7op8PjFRxZ 2Ahih+vZAASs5MJ7ZNNSNuSmqpZky3ltsEhQ/4T/d+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+gKou54b0QiqVWOMH4SRulNKNAzlbI/FKB0Mf78PSdnblt+hNhVepT4sv1/e/ yhfiNM/eK7dOGaoWppXz/StZt8moBEbjk4UwiFTrbVnVqV/4N5ZciS2L7ls036SsSoGFnmP+YyAr dXiYzekar0ApqzL6FQn5WD4yXuKoBmVGVs25Sk+f/aN4m7AoYpAza90rJQFbVLKK8LeqLIrXNxti KLbTVRJ4R38AJJaw6lpVMBAGXjBUp970QzfIPM42KmcEa7ZRXaJK/PgyZ2OpXFKpODrHiAISseNy EBsxCi+SCLwkO42WUqbqaTVzig0MwwOL8SqdNWP0WmyxJHGyyTzkIPXtNwGxedo2q6qONPRbB5St xiOhNpnxG2OjESuzpIUhXyL+g7AsjaJAHdyHD2LmJJaY/alzrP77X/jnv17W8z+729td/P81Wu3v f107YtbbxKwL/h0TfE+Yfqk/B4NVPEsUhv2gA37S4te9nuApG0YsjLIQvuqfsR/zqeMH+jdPEnzh uNdTf8zkH2Ab3J1FbAPLbffYt/+2kffc+Cldxfkp9P/n+U/7Z/aHwwv74OTjx8MLKoQmOKNK2R79 XRiMrXE5wlBgCD6FbVPeULMhvcI+1UiW4vLAfRq933q9DaTsXy29rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r2/7H9DxXZtPIAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"