#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0ede892b660d60d89567635cef354a0530bc0254 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 H4sIABaQHWcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOn5Vcq7zUd85tid2X67jczm0CFmMKZJHkLb1 3rR/++0uAJIgKcl+bfJu7oiZRBK4WCz2Cwvs0gvvRowW8J8794LISRbf/PltC9rL58/xc/vl8236 vf3yJX3Ct62t3ZffbO++3Hr5bOvlixc732xtbz/bfvEN2/oCtDRaLjIvZexrTPW/sW3+ZZSLdHQV RCMe3bJkkc3iaKe3sbHRq2oFG7L3POKpl3F28N13bJrGc/YLALDDj06v97PggiG84wk/dBj7FIQh y2aBYFecpfwuDbKMR8yTUBIrfntNMxE2153mWZ5y12XBPInTjCVpEGXQG02yII56PdUtFqKnhvj8 9ioPQt+5BuTqMU2AZEgY/KYfTeN07mVIxXSeyceTOOX6MU/TOJXdvpd5buhF1/rZ5+/lg/likiS6 c74IgyvZj7Pq7iz1IoFzNR8BnS4gUPRniyQopzgKREbs8PmUnSS4ZmH393oM2ibC8j1m99nwFYuT LPFSwR0JdYrfU4Lb+MiBh5FgXoRQ8JARZMqCCBQ9mnBno0eQCRu347H78rnj+b4rcdjWcBjFwyTl WbYYkliGcw6a4gtrQNBG87nIxpaEdqUQV0B7JN2xJTIQhTv1QsHbkU69PMzG52nOWx7PeJiMrU8z mAcWm8XIaamukg6pTMhtTUq/pzh7EEdZGofslHQfNAI4leYTIEdoEBAmm0Wxz0m/W/mTLIZBFGTD 4xUcWbgI4kbr2QAErOTCO2TTUjYUpqqW5Mp5XbBIUP+U/3cepGCw/JanCzYNe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9EIqlVjjB+EkblTSjQM5WyPxSgfDAO/DsnZ2FbfoTYVXqU+HL9f3 v8oX4jTP3im3ThmqFqZV8/0rWbfJqARG45OFMIhU621V1alfBNeOXIkri+5bNN+mrEqJhZ5j/mMg K3V4lM/pGq9EKasy+oaEAiwf2VriqAZVRprmbNLTZ/8o3yYsixjkzFr3KknAFpU0Ef5myqJ8fbMh hnI7XSWBt/QHQBIJq65VBQNh4AWDOfVmEE3C3OdswzgjOLMNc4kq8RPInI2jckmV4ugCIwpIJN6E g9iIUXiRROAV2Wm0lDJVT83MKTYwDB8sxjc6a8bot9hiReJkk0XIQerbbwJi87VtmqqONPRbB1St xiehNpnxG2OjEauypIUhXyL+g7Asi+NQHdyH92LmpY6Y/alzrP77X/jnv17U8z+7z7e6+P9rtNrf /7ryxKy3iVkX/Dsm+J4w/VJ/DgareJYoDPtBB/ykxa96PcEzNoxZFOcRfNU/kyDhUy8I9W+epvjC ca+n/pjJP8A2+GQWsw0st91j3/7bRtFzHWR0FRdk0P+fZz/tf3TfH567BycfPhyeUyE0wVkmZXv0 d2EwtsblCEuBIfgUtk15Q82G9Ar7VCNZissH92n1fuv1NpCyf7X0uta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeva/8f2P7QfXMUAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"