#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=108f1a305acc55f69ec04cc1828a24d6b4b5f663 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 H4sIACKXhmcAA+08/XPbNrL9WX8Fzm6GVCpR/krS8VXJuc5HfZc4nti9XMfP5dAiZDGmSB5B2tbd tH/77S4AEvyQZF+TvDfziJlEErhYLPYLC+zSC+9ajBbwnzv3gshJFt98/rYF7dmTJ/i5/ezJNv3e 2dqiT3z0bOvpN9t7z/a2n2zv7jx7+s3W9vbu1rNv2NYXoKXRcpF5KWNfY6r/i23zT6NcpKPLIBrx 6IYli2wWRzu9jY2NnqkVbMje8IinXsbZ4XffsWkaz9kvAMCOPji93s+CC4bwjif80GHsYxCGLJsF gl1ylvLbNMgyHjFPQkms+O0FzUTYXHeaZ3nKXZcF8yROM5akQZRBbzTJgjjq9VS3WIieGuLzm8s8 CH3nCpCrxzQBkiFh8Jt+NI3TuZchFdN5Jh9P4pTrxzxN41R2+17muaEXXelnn76XD+aLSZLozvki DC5lP86qu7PUiwTO1XwEdLqAQNGfLZKgnOJtIDJih8+n7H2CaxZ2f7/HoG0iLN9ndp8Nn7M4yRIv FdyRUCf4PSW4jQ8ceBgJ5kUIBQ8ZQaYsiEDRowl3NnoEmbBxOx67L587nu+7EodtDYdRPExSnmWL IYllOOegKb6wBgRdaT4X2diS0K4U4gpoj6Q7tkQGonCnXih4O9Kpl4fZ+CzNecvjGQ+TsfVxBvPA YrMYOS3VVdIhlQm5rUnp9xRnD+MoS+OQnZDug0YAp9J8AuQIDQLCZLMo9jnpdyt/ksUwiIJseLyC IwsXQdxoPRuAgJVceI1sWsqGwlTVklw5rwsWC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RRt9at5QpkQkbXxA1R1OTekA1JZxBo/CCdxw8g0DuRsjZwrHWYCvArL2tlVXKA3FV5l PR2+XN//LF+20jx7rTw6JadamGam+leybpNR9YvGJ2tgEKnWW1PVqV8EV45ciSvr7Vs036aESomF nmPqYyCLdHiUz+kGr0QpCzL6FQkFWDmytcRRDUxGVs25Sk+f/bt8U62sX5Aza90z8n8tKllF+FtV FuUrfw0xlDvpKgm8or/9kEhYdaMqGAgDD8XVqTeDaBLmPmcblZjcmW1Ul6hyPoFM1zgqjWTURRcY UUAi8SYcxEaMwosgAjdkp9FStlQ9rSZNsYFh+GAxfqWzZox+iy0aEiebLKINUt9+ExCbr22zqupI Q791gGk1Pgm1yYzfGBuNmMmSFoZ8sfgPwrIsjkN1ZB7eiZmXOmL2WedY8/eftvaa+Z+93e0u/v8a rfb3ny49MettYtYF/44FvohKv9SfA8EqniUKw37QAT+p8vNeT/CMDWMWxXkEX/XPJEj41AtC/Zun Kb7R2uupP2bxbzAQPpnFbAPLbffZt3/ZKHqugowuwYIM+v9x+tPBB/fN0Zl7+P7du6MzKoQmOKtK 2T79XRAMsHE5wlJgCD6FvVNeM7Mhvfs81UiW4vLBh1q933q9DaTsf1t6Xeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWta137/9b+A5ZXajkAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"