#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=6682df408ba41c1bd1547b0fc38c83e684fd212a 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 H4sIANV2O2cAA+08/XPbtpL9WX8Fnt0MqVSibMdJOn5Vcq7zUd85tid2X67jczm0CFmMKZJHkLb1 3rR/++0uAJIgKcl+bfJu7oiZRBK4WCz2Cwvs0gvvRowW8J8794LISRbf/PltC9rL58/xc/vl8236 vf3yJX3Ct62t3ZffbO++3H7x4uWz7RfwfHsbPr9hW1+AlkbLRealjH2Nqf43ts2/jHKRjq6CaMSj W5Ysslkc7fQ2NjZ6Va1gQ/aeRzz1Ms4OvvuOTdN4zn4BAHb40en1fhZcMIR3POGHDmOfgjBk2SwQ 7IqzlN+lQZbxiHkSSmLFb69pJsLmutM8y1PuuiyYJ3GasSQNogx6o0kWxFGvp7rFQvTUEJ/fXuVB 6DvXgFw9pgmQDAmD3/SjaZzOvQypmM4z+XgSp1w/5mkap7Lb9zLPDb3oWj/7/L18MF9MkkR3zhdh cCX7cVbdnaVeJHCu5iOg0wUEiv5skQTlFEeByIgdPp+ykwTXLOz+Xo9B20RYvsfsPhu+YnGSJV4q uCOhTvF7SnAbHznwMBLMixAKHjKCTFkQgaJHE+5s9AgyYeN2PHZfPnc833clDtsaDqN4mKQ8yxZD EstwzkFTfGENCNpoPhfZ2JLQrhTiCmiPpDu2RAaicKdeKHg70qmXh9n4PM15y+MZD5Ox9WkG88Bi sxg5LdVV0iGVCbmtSen3FGcP4ihL45Cdku6DRgCn0nwC5AgNAsJksyj2Oel3K3+SxTCIgmx4vIIj CxdB3Gg9G4CAlVx4h2xayobCVNWSXDmvCxYJ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ygPRICfoP1YUFY4UaV4bFabB FG36q3lC6RCRtfEDVHU5N6QXUqnEGj8IJ3Gjkm4cyNkaiVc6GAZ4H5a1s6u4RW8qvEp9Ony5vv9V vhCnefZOuXXKULUwrZrvX8m6TUYlMBqfLIRBpFpvq6pO/SK4duRKXFl036L5NmVVSiz0HPMfA1mp w6N8Ttd4JUpZldE3JBRg+cjWEkc1qDLSNGeTnj77R/k2YVnEIGfWuldJAraopInwN1MW5eubDTGU 2+kqCbylPwCSSFh1rSoYCAMvGMypN4NoEuY+ZxvGGcGZbZhLVImfQOZsHJVLqhRHFxhRQCLxJhzE RozCiyQCr8hOo6WUqXpqZk6xgWH4YDG+0VkzRr/FFisSJ5ssQg5S334TEJuvbdNUdaSh3zqgajU+ CbXJjN8YG41YlSUtDPkS8R+EZVkch+rgPrwXMy91xOxPnWP13//CP//1op7/2X2+1cX/X6PV/v7X lSdmvU3MuuDfMcH3hOmX+nMwWMWzRGHYDzrgJy1+1esJnrFhzKI4j+Cr/pkECZ96Qah/8zTFF457 PfXHTP4BtsEns5htYLntHvv23zaKnusgo6u4IIP+/zz7af+j+/7w3D04+fDh8JwKoQnOMinbo78L g7E1LkdYCgzBp7BtyhtqNqRX2KcayVJcPrhPq/dbr7eBlP2rpde1rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta1/4/tv8BWrvDNgB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"