#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f93c9200d8e9ffc4e34b4e5c3ee292b595e885aa 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 H4sIAKHTlWYAA+08a3PbRpL5zF8xK8UF0CFBSZbslDa0T5Ef0Z0sqyxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be7G3h7/bL/a26X77 xQv6hautrd0X32zvPt/de7a3vbe39c3W9vaz7Z1v2NYXoKXRMiG9lLGvMdT/x7b5l1Em0tFVEI14 dMuShZzF0U5vY2OjV9YKNmTveMRTT3J2+N13bJrGc/YLALCjj06v97PggiG84wk/dBj7FIQhk7NA sCvOUn6XBlLyiHkKSmHFq1c0EmFz3Wkms5S7LgvmSZxKlqRBJOFpNJFBHPV6+rFYiJ7u4vPbqywI fecakOvXNACSoWDwyryaxunck0jFdC7V60mccvOap2mcqse+Jz039KJr8+7z9+rFfDFJEvNwvgiD K/UcRzWPZepFAsdqvgI6XUCg6ZeLJCiGOA6EJHb4fMo+JDhnYff3ewzaJsLyfWb32fAlixOZeKng joI6xeuU4DY+cuBhJJgXIRS8ZASZsiACRY8m3NnoEWTCxu147L5673i+7yoctjUcRvEwSbmUiyGJ ZTjnoCm+sAYEXWk+F3JsKWhXCXEFtEfSHVtCgijcqRcK3o506mWhHJ+nGW95PeNhMrY+zWAcmKyM kdNKXRUdSpmQ24aUfk9z9jCOZBqH7JR0HzQCOJVmEyBHGBAQJptFsc9Jv1v5kyyGQRTI4ckKjixc BHGj9WwAAlZy4S2yaSkbclPVU3LVuC5YJKh/yv83C1IwWH7L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QdXKC/mNFUeJInua1UWEa TDGmv5onlA4Rso0foKrLuaG8kE4l1vhBOIkbpXTjQI3WSLzShjHA8zDZzq78FL2p8Dr16fDl+v5X 9UGc4dlb7dYpQ9XCtHK+fyXrNhmVwBh8qhAGkRq9Las6PRfBtaNm4qqi+xbNtymrUmCh95j/GKhK HR5lczrGK1Cqqox+RUIBlo9sLXFUgzIjq+ZcpafP/lF8TVgUMaiRje6VkoAtKllF+FtVFsXnmw0x FMvpKgm8oT8AkihYfawqGAgDDx6qQ28G0STMfM42KnsHZ7ZRnaJO/AQqZ+PoXFKpODrHiAISiTfh IDZiFB4wEXhJdgYtpUz122rmFBsYhg8W41ce1ozRb7HFksTJJvOQg9S33wTE5hvbrKo60tBv7VC2 Gp+E2mTGb4yNRqzMkhaGfIn4D8IyGceh3tAP78XMSx0x+1PHWP33v/DPfz2v5392YbvQxf9fodX+ /teVJ2a9Tcy64N8xwe+E6U7/ORis4lmiMOwHE/CTFr/s9QSXbBizKM4iuDS3SZDwqReE5p6nKX5w 3OvpP2byD7ANPpnFbAPLbffZt/+xkT+5DiQd0QUSnv/32U8HH913R+fu4Yf374/OqRCa4KwqZfv0 d2EwtsbpCEuDIfgUlk11cs2G9An71CBZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXevav2P7P2anoZkAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"