#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=1e8120ee14c2e79ff0d7ccf0c146551f585b9573 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 H4sIALPBxGYAA+08a1PjSJLz2b+iFqZDco8tAw3dE+y4+xj6MdzRQACzfRMco5ClMlYjSzqVBHg3 Zn77ZWZV6W0bdqZ7L2JVEWBLysrKyldlVaa8cG7FaAH/7Lnjh1a8+ObPb1vQXu3t4ef2q71tut5+ 9Yo+4dvW1u6rb7Z3X77c3t7d2tt9+c3W9vaL7e1v2NYXoKXRMpE6CWNfY6j/j23zL6NMJKOJH454 eMfiRTqLwp3exsZGr6wVbMg+8JAnTsrZ4XffsWkSzdkvAMCOzq1e72fBBUN4yxFeYDH2yQ8Cls58 wSacJfw+8dOUh8yRUBIrfntDIxE2255maZZw22b+PI6SlMWJH6ZwN3RTPwp7PXVbLERPdfH43STz A8+6AeTqMQ2AZEgY/KYfTaNk7qRIxXSeysdulHD9mCdJlMjbnpM6duCEN/rZ5+/lg/nCjWN9c74I /Im8j6Pq22nihALHaj4COm1AoOhPF7FfDHHsi5TY4fEpO41xzsLs7/cYtE2E5fvM7LPhaxbFaewk glsS6gy/JwS3cc6Bh6FgTohQ8JARZML8EBQ9dLm10SPImI3b8Zh9+dxyPM+WOExjOAyjYZzwNF0M SSzDOQdN8YQxIOhK87hIx4aEtqUQV0A7JN2xIVIQhT11AsHbkU6dLEjHl0nGWx7PeBCPjU8zGAcm m0bIaamukg6pTMhtTUq/pzh7GIVpEgXsjHQfNAI4lWQukCM0CAiTzcLI46TfrfyJF0M/9NPhyQqO LGwEscP1bAACVnLhPbJpKRtyU1VTsuW4NlgkqH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AVZdzQ3ohlUqu8YNwEjdK6eaBHK2ReKcNo4/nYWk7u/IsSlPhVerb4sv1/a/yhTjNs/fKrVOG soVp5XqPlazbZFQCpfHJQihEqvW2rOp0X/g3lpyJLV+6aNF8k7JqBRZ6jvmvgazU4mE2p2O8AqWs yulXJORj+dDWEkc1KDOyas5VevrsH8XbhEURixxZ614pCdyiklWEv1VlUby+2RBDsZyuksA7+gGQ WMKqY1XBQBh48FAdetMP3SDzONuo7B2s2UZ1iirx58ucnaVyiaXi+BwjCkjEjstBbMQoPGAi8JLs NFpKmaun1cw5NjAMDyzGq9ysGaPXYosliZNN5iEHqW+/CYjN07ZZVXWkod/aoWw1Hgm1yYzfGBuN WJklLQz5EvEfhGVpFAVqQz98EDMnscTsTx1j9e9/4c9/vaznf3Z3X3Tx/9dotd//mjhi1tvErAv+ jgm+J0xX6udgsIpricKwH3TAT1r8utcTPGXDiIVRFsJXfRn7MZ86fqCveZLgC8e9nvoxk3+AbXB3 FrENLLfeZ9/+x0Z+58ZP6YjOT+H+f1/8dHBufzi6tA9PP348uqRCeIIzqpTt0+/CYGyN0xGGAkPw KSyb8uSaDekV9qlGshSXB+7T6P3W620gZf9q6XWta13rWte61rWuda1rXeta17rWta51rWtd61rX uta1rnWta13rWte61rWuda1rXeta17rWtX/H9n854kJyAHgAAA== XSHAR_DATA } change_dir extract_data devtools/hello-xshar.sh "$@"