#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=f99f98dcf7bec75983f3e7af5f0938c83256e028 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 H4sIAJT0g2cAA+08a3PbOJLzWb8Ca0+KVEai/MpkyjtKzuM8xruO44o9m5vyeVi0CFmMKZJHkLa1 WzO//bobAAk+JNk7Se6qjqhKJIGNRqNfaKCbXng3YrSA/9y5F0ROsvjm87ctaM+fPcPP7efPtun3 ztYWfeKj51vff7O993wPvu1sfb/7zdb29u7W82/Y1hegpdFykXkpY19jqv+LbfMvo1yko6sgGvHo liWLbBZHO72NjY2eqRVsyN7yiKdextnhd9+xaRrP2a8AwI4+OL3eL4ILhvCOJ/zQYexjEIYsmwWC XXGW8rs0yDIeMU9CSaz47SXNRNhcd5pnecpdlwXzJE4zlqRBlEFvNMmCOOr1VLdYiJ4a4vPbqzwI fecakKvHNAGSIWHwm340jdO5lyEV03kmH0/ilOvHPE3jVHb7Xua5oRdd62effpAP5otJkujO+SIM rmQ/zqq7s9SLBM7VfAR0uoBA0Z8tkqCc4jgQGbHD51P2PsE1C7u/32PQNhGW7zO7z4YvWJxkiZcK 7kioU/yeEtzGBw48jATzIoSCh4wgUxZEoOjRhDsbPYJM2Lgdj92Xzx3P912Jw7aGwygeJinPssWQ xDKcc9AUX1gDgq40n4tsbEloVwpxBbRH0h1bIgNRuFMvFLwd6dTLw2x8nua85fGMh8nY+jiDeWCx WYycluoq6ZDKhNzWpPR7irOHcZSlcchOSfdBI4BTaT4BcoQGAWGyWRT7nPS7lT/JYhhEQTY8WcGR hYsgbrSeDUDASi68QTYtZUNhqmpJrpzXBYsE9U/5f+dBCgbLb3m6Y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AKSAa5AT9x4rC4EiR4bVR YRpM0Va/mieUCRFZGz9AVZdzQzoglUWs8YNwEjeMTONAztbIudJhJsCrsKydXcUFelPhVdbT4cv1 /a/yZSvNszfKo1NyqoVpZqp/Jes2GVW/aHyyBgaRar01VZ36RXDtyJW4st6+RfNtSqiUWOg5pj4G skiHR/mcbvBKlLIgo1+RUICVI1tLHNXAZGTVnKv09Nm/yjfVyvoFObPWPSP/16KSVYS/V2VRvvLX EEO5k66SwGv62w+JhFU3qoKBMPBQXJ16M4gmYe5ztlGJyZ3ZRnWJKucTyHSNo9JIRl10gREFJBJv wkFsxCi8CCJwQ3YaLWVL1dNq0hQbGIYPFuNXOmvG6LfYoiFxsski2iD17TcBsfnaNquqjjT0WweY VuOTUJvM+J2x0YiZLGlhyBeL/yAsy+I4VEfm4b2YeakjZp91jjV//2lrr5n/2dvd7uL/r9Fqf//p yhOz3iZmXfDvWOCLqPRL/TkQrOJZojDsRx3wkyq/6PUEz9gwZlGcR/BV/0yChE+9INS/eZriG629 nvpjFv8CA+GTWcw2sNx2n337HxtFz3WQ0SVYkEH/f579fPDBfXt07h6+f/fu6JwKoQnOqlK2T38X BANsXI6wFBiCT2HvlNfMbEjvPk81kqW4fPChVu/3Xm8DKfvfll7Xuta1rnWta13rWte61rWuda1r Xeta17rWta51rWtd61rXuta1rnWta13rWte61rWuda1rXeta1/6/tf8BbkZ1iQB4AAA= XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"