#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=374ddcae00d72886123de3356bcd2d910b8f0fcd 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 H4sIAOwDzWYAA+08/XPbNrL9WX8Fzm6GVCrRn8llfFXyXOejvkscT+xeX8fP5dAkZDGmSD4Csq27 af/2t7sASIKiJOea5ObNETO2JXKx2C8sdheA58GN2Do5PvnroS9mV9dFkE+8fP7NZ23b0J7u79Nf aM2/T7b39r7Z2X/6dG93e+fp7s432zt7T/d2vmHbn5eM9jYTMigY+6bIMrkKbt37/6dtY2OjN2+1 gR6+GhfZlPn+eCZnBfd9Fk/zrJAsL+JUwtM0lHGW9hTY1SxOIgORxunHwE/iq9o7r3xooJLsesCO 3r87PX776sOZ//fDD8eHJ+dnvZ7PRviy19tk5+9fvj9gYpLNAPskuOUs4jlPI56GMRfsLpYTeOtf xWlQzHsffnr76sw//QX6OzToFg06LGYJF8N87omJ0+v1Ij5mJ/jiDXLrFrP+QY9BS6FfMfOAJfwG n8JsOuWpdJ03POVFIHnErubskXDYI5BLGkxBKv0SOhBRgvwVQIrrkFzxFz13KrAw1OTWYPxilsoY 0EkuJEA4A4K2GjAuRhfO1tZ0Hub5lu7hXLaATgNZxPejRdlqKjYZDsqAvTxOeNFTfeKUWELhEU34 xKF3JOYM5O46vpIrGYxi75HYkkWQigTk48l7icIpkfVZINj4oFdnAga4SOKUewKozN0+G2cFwwcs Ttn4UpGYF3wc3yMt/jVPaaStR8Ij3q0RCDqbyXwmCbPu+B1zSI6s9n3iXCo9e8SEq3vZAnRguGEW J2IIZA1naXzfUAayYD8Be07iMJagHVTtlpjcgWEpPSkpDpgxzYa6boMi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0qsoS/p3/R4OpFs3YsHABJhucF13v+p4SGvvcH JdKqi8ZhDl1XJ9cVDVSOqA5DNoovvSUj0zn3PzSy8Z2wAPA7nWFgoYmr/3yg7HKplHGBwEVU4CYW 2MMdd2DtSjmPaKtzignO8YdqNTS3/awLBGUgAubvmjoa1dDqQcKEhzdWmPA+TeawqqqJT68hwn6x dLUpn0/hYZmnebo05ExirP9cWjr5o3Yx/ddVY1f32kIrU9fTMlI1PfXFDjO3IcQEWZp/GEPS9CkL 9n0tUMuj08qOU1RFjUSN8uF1Aho+XM1T55E4YK8Pzw/fHuhTiCWii+1LcEurPAA+4/exdHf63V3w /4gW8VuZZYn+hw7DezEJCk9MPusYq+t/WP572qj/7e/ubHf1v6/RGvW/q0BMepv4X7cwj0E/Qd90 OoiLzRKDYd+b5IXOOj3v9QSXbJjB0jRL4aP5msc5RHJxYr6D+0GH0+vpZOaf4It4OMnYBmbNB+zb /9oon1zHkv5FSyzh+X+f/Xj4wX9zfO4fvX/37vicyloE59iUHVBeiJUfZEc4GgzBxzFEolQBZ0Na wsYGyVJcUZZyp/dbr7eBlP27tde1rnWta13rWte61rWuda1rXeta17rWta51rWtd61rXuta1rnWt a13rWte61rWuda1rXeta1/4T2/8BteqzuQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"