#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=0c6e88c28b23d78afa3c8c6be044de85157d6fd7 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 H4sIADsOl2YAA+08a3PbRpL5zF8xK8UF0CFBSpbtlDa0T5Ef0Z0tqyxlfSmdgoKIoQgLBHCYgSTu VvLbr7tnBm+S0ib2XtViqmzi0dPT06/pmW5o6V2L0RL+cxdeEDnJ8ps/v42hPX/6FH93nj/dofud 58/pF67G473n3+zsPdt7+mz8HO6/Ge/sPBk//YaNvwAtjZYJ6aWMfY2h/j+27b+MMpGOLoNoxKMb lizlPI52e1tbW72yVrAhe8sjnnqSs8PvvmOzNF6wXwCAHX10er2fBRcM4R1P+KHD2KcgDJmcB4Jd cpby2zSQkkfMU1AKK169pJEIm+vOMpml3HVZsEjiVLIkDSIJT6OpDOKo19OPxVL0dBef31xmQeg7 V4Bcv6YBkAwFg1fm1SxOF55EKmYLqV5P45Sb1zxN41Q99j3puaEXXZl3n79XLxbLaZKYh4tlGFyq 5ziqeSxTLxI4VvMV0OkCAk2/XCZBMcS7QEhih89n7EOCcxZ2f7/HoG0jLN9ndp8NX7A4kYmXCu4o qBO8Tglu6yMHHkaCeRFCwUtGkCkLIlD0aMqdrR5BJmzSjsfuq/eO5/uuwmFbw2EUD5OUS7kckliG Cw6a4gtrQNCV5nMhJ5aCdpUQ10B7JN2JJSSIwp15oeDtSGdeFsrJWZrxltdzHiYT69McxoHJyhg5 rdRV0aGUCbltSOn3NGcP40imcchOSPdBI4BTaTYFcoQBAWGyeRT7nPS7lT/JchhEgRwer+HI0kUQ N9rMBiBgLRfeIJtWsiE3VT0lV43rgkWC+qf8f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qDANphjT X88TSocI2cYPUNXV3FBeSKcSa/wgnMSNUrpxoEZrJF5pwxjgeZhsZ1d+it5UeJ36dPhqff+r+iDO 8OyNduuUoWphWjnfv5Z124xKYAw+VQiDSI3ellWdnovgylEzcVXRfYvm25RVKbDQe8x/DFSlDo+y BR3jFShVVUa/IqEAy0fGKxzVoMzIqjlX6emzfxRfExZFDGpko3ulJGCLSlYR/laVRfH5ZkMMxXK6 TgKv6Q+AJApWH6sKBsLAg4fq0NtBNA0zn7Otyt7BmW9Vp6gTP4HK2Tg6l1Qqjs4xooBE4k05iI0Y hQdMBF6SnUFLKVP9tpo5xQaG4YPF+JWHNWP0W2yxJHGyyTzkIPXtNwGx+cY2q6qONPRbO5Stxieh NpnxG2OjESuzpIUhXyL+g7BMxnGoN/TDOzH3UkfM/9Qx1v/9L/zzX89K8f8Y8z97T5518f/XaLW/ /3XpiXlvG7Mu+HdM8DthutN/DgareFYoDPvBBPykxS96PcElG8YsirMILs1tEiR85gWhuedpih8c 93r6j5n8A2yDT+cx28Jy23327X9s5U+uAklHdIGE5/99+tPBR/ft0Zl7+OH9+6MzKoQmOKtK2T79 XRiMrXE6wtJgCD6DZVOdXLMhfcI+M0hW4vLBfVq933q9LaTsXy29rnWta13rWte61rWuda1rXeta 17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta17r279j+D6zq4jsAeAAA XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"