#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=658400cd1f1949925203a48eae262893af548a34 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 H4sIAAiFmGYAA+08a3PbRpL5zF8xK8UF0CFBSZbtlDa0T5Ef0Z0tqSRlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o4d2I0QL+c+deEDnJ4ps/v21Be/n8Of5uv3y+Tffb L1/SL1xtbe2+/GZ798Xui+2tnWfbL77Z2t5+tvX8G7b1BWhptExIL2Xsawz1/7Ft/mWUiXR0FUQj Ht2yZCFncbTT29jY6JW1gg3Zex7x1JOcHXz3HZum8Zz9AgDs8NTp9X4WXDCEdzzhhw5jn4IwZHIW CHbFWcrv0kBKHjFPQSmsePWaRiJsrjvNZJZy12XBPIlTyZI0iCQ8jSYyiKNeTz8WC9HTXXx+e5UF oe9cA3L9mgZAMhQMXplX0zidexKpmM6lej2JU25e8zSNU/XY96Tnhl50bd59/l69mC8mSWIezhdh cKWe46jmsUy9SOBYzVdApwsINP1ykQTFEB8CIYkdPp+y4wTnLOz+Xo9B20RYvsfsPhu+YnEiEy8V 3FFQJ3idEtzGKQceRoJ5EULBS0aQKQsiUPRowp2NHkEmbNyOx+6r947n+67CYVvDYRQPk5RLuRiS WIZzDpriC2tA0JXmcyHHloJ2lRBXQHsk3bElJIjCnXqh4O1Ip14WyvF5mvGW1zMeJmPr0wzGgcnK GDmt1FXRoZQJuW1I6fc0Zw/iSKZxyE5I90EjgFNpNgFyhAEBYbJZFPuc9LuVP8liGESBHB6t4MjC RRA3Ws8GIGAlF94hm5ayITdVPSVXjeuCRYL6p/x/syA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b+AGqupwbygvpVGKNH4STuFFKNw7UaI3EK20YAzwPk+3syk/RmwqvU58OX67vf1Uf xBmevdNunTJULUwr5/tXsm6TUQmMwacKYRCp0duyqtNzEVw7aiauKrpv0XybsioFFnqP+Y+BqtTh UTanY7wCparK6FckFGD5yNYSRzUoM7JqzlV6+uwfxdeERRGDGtnoXikJ2KKSVYS/VWVRfL7ZEEOx nK6SwFv6AyCJgtXHqoKBMPDgoTr0ZhBNwsznbKOyd3BmG9Up6sRPoHI2js4llYqjc4woIJF4Ew5i I0bhAROBl2Rn0FLKVL+tZk6xgWH4YDF+5WHNGP0WWyxJnGwyDzlIfftNQGy+sc2qqiMN/dYOZavx SahNZvzG2GjEyixpYciXiP8gLJNxHOoN/fBezLzUEbM/dYzVf/8L//zXi3r+Z/fZyy7+/xqt9ve/ rjwx621i1gX/jgl+J0x3+s/BYBXPEoVhP5iAn7T4Va8nuGTDmEVxFsGluU2ChE+9IDT3PE3xg+Ne T/8xk3+AbfDJLGYbWG67x779j438yXUg6YgukPD8v89+2j913x+euwfHHz8enlMhNMFZVcr26O/C YGyN0xGWBkPwKSyb6uSaDekT9qlBshSXD+7T6v3W620gZf9q6XWta13rWte61rWuda1rXeta17rW ta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17rWtX/H9n8dvGCUAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"