#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=042dd57a525e1ca45377780cdfa1dd3894906e1e 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 H4sIAG3G3mcAA+07a3PbRpL5zF8xK8UF0CGhpy0XN7RPkR/Rri2rLGVzKZ2CgoChCAsEcBhQEncr +e3X3TMDYACQlC6x76oWU2WLBHp6+j3dPcOFdyO2XDeMw9x1nXTxzRcY2zCe7+/j352DZzv0fXd7 m/6q8c3O/sHzg2f7e9s7e99s7+xsAzjb/hLE1Mdc5F7G2NdY6v/jWKD+r3ns+mn6hdS/Tv/7z/cP avrfPth/1un/a4yNjY1eqX42ZPk8ixlaheOJIGIZTzMueJx7eZjELIzzhB19910P502yZMZcdzKH Odx1WThLkyxnaQZQ8DT2cUpPgQX89moeRoEDqzmI3yX8ao59miXXmTcbsFkSAOyk+ODyAbvJFykf 9NhDBsEWk9x8wE68GT9HBEzks1z+7z4UHQHDpOMY/rvh92lGuOlD3pe8zRYgPc3JbBGFV5XnDj3Q b3PvWtyFuT8dsCi5VrIBQsP4WoP4nsh7PZeNJUQPZMDe8Rg5sAFywCb9EdG+iRP5iNkFp7SU83MW 5jzrs+FLdpLEvEfAP526AAVI4X96AFRMS3IQc595Alfno0I04YQeqBW4A1LojwzBTZw7XM62QOdW v1e841F97lmeLZv7Q3gNb5+unv8+FPXFJUcoMAlFMAPFa799LQT53jJfVsTrnKOA26e+rFFYlRSO zAsFZ4dC8Awt/02WJRkJttTiqQdGbrcpsbTSFVrUhKaOsoSeQSB7IuAfS50YkFVWfQPWaqPJthmP NOV1xoNQIGv802Y++HyV/UjHabEfhZd0SD6m1lqigicBMogATth/rCoqEj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