#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=b6d8ccb284aa87da281629f852aec50fd17e1d04 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 H4sIAFIGwGcAA+08/XPbtpL9WX8Fnt0MqVSiZMeJO3pVcq7zUd8ljid2X6/jp3JoErIYUySPoGzr vWn/9ttdACRBUZJzTfJu7oiZWBK4WOw3FsAyS+9GDPLMi8U0yeZOuvzm87chtGcHB/i5d/h0j37v D4f0CV0H+0+ffLN3cPgMuw+fAtze3pMn+9+w4RegZaUtRO5ljH2Nqf43tp2dnU5V/azP8kUWs1ky T655zJOFYHEYfe94IohYxtOMCx7nYRKzMM4TNuM5zzRkZwnWVIP0ELaD00yzZM5cd7qACbjrsnCe JlnO0gwQQW/sE6QCC/jt1SKMAgdQO0iAS2jVmPjWixa8pz7d8lveNBypMobb75JgEcGoMyA98+Y9 Nk8CGDMtvrh5r8Me0m7yZQqI6AMGMZHP1V/8dcPv0+zBuE5iGHKR3PC4x87D69hDQfXYqTfnF4C+ q2QzX/pp6syXUXilGYqS6x7LvWtxF+b+TMEBSWF8rUF8TwD2t6HIOx2XjXFIp9MBVtk7cIEf+fly fpVENsqxOyJ6dxEDHzFby7bL+s+BtYyehlOSuQOz2l32l3GhC0diGhU8Z14oODsSgmeo4VdZlmS2 9eo+5X7OAybBe+w6ydkjYbFHhKlLwzNOxoi0KyocDU5AjjB4QO62c4BQl7pnsoUZBH4wKwj8YEYk sGQjzPlcs3KhvRHQZtu5USbWIZCfz1x8yCQD1AUWMStNQ+JjnkBSeMkYCAA77IJvsMXuyDBbhbjK AhmsmrNrAEeJD7Bky7aVevnM6jHLny3iG/gy7LEnXeT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