#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=3a36fd713018359495131a78e685801b51bbd29e 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 H4sIAHmhhmcAA+08/XPbNrL9WX8Fzm6GVCpRsuMkHV+VnOt81HeJ44ndy3X8XA4tQhZjiuQRpG3d Tfu33+4CIMEPSc41yXszj5hJJIGLxWK/sMAuvfSuxWgJ/7kLL4icZPnN529jaE8fP8bPnaePd+j3 7nhMn/jo6fjJNzt7T/d2Hu+O93affDPe2Xk03v2Gjb8ALY2Wi8xLGfsaU/1fbNt/GuUiHV0G0YhH NyxZZvM42u1tbW31TK1gQ/aaRzz1Ms4Ov/uOzdJ4wX4BAHb03un1fhZcMIR3POGHDmMfgjBk2TwQ 7JKzlN+mQZbxiHkSSmLFb89pJsLmurM8y1PuuixYJHGasSQNogx6o2kWxFGvp7rFUvTUEJ/fXOZB 6DtXgFw9pgmQDAmD3/SjWZwuvAypmC0y+Xgap1w/5mkap7Lb9zLPDb3oSj/7+L18sFhOk0R3LpZh cCn7cVbdnaVeJHCu5iOg0wUEiv5smQTlFG8CkRE7fD5j7xJcs7D7+z0GbRth+T6z+2z4jMVJlnip 4I6EOsHvKcFtvefAw0gwL0IoeMgIMmVBBIoeTbmz1SPIhE3a8dh9+dzxfN+VOGxrOIziYZLyLFsO SSzDBQdN8YU1IOhK87nIJpaEdqUQ10B7JN2JJTIQhTvzQsHbkc68PMwmZ2nOWx7PeZhMrA9zmAcW m8XIaamukg6pTMhtTUq/pzh7GEdZGofshHQfNAI4leZTIEdoEBAmm0exz0m/W/mTLIdBFGTD4zUc WboI4kab2QAErOXCK2TTSjYUpqqW5Mp5XbBI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