#!/bin/sh export XSHAR_REPO=oilshell/oil export XSHAR_GIT_COMMIT=ce8707f6b7705c6c53c206795c90072c6831f7ee 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 H4sIAPxzIWcAA+08/XPbtpL9WX8Fnt0MqVSibMdJOnpVcq7zUd85tid2X67jczkUCVmMKZJHkLb1 3rR/++0uAH5Lsl+bvJs7YiaRBC4Wi/3CArv00rkRoyX8Zy8cP7Ti5Td/ftuB9vL5c/zcffl8l37v vnxJn/BtZ2f/5Te7+y93d/Ze7r54tvfNzu7us53n37CdL0BLo2UidRLGvsZU/xvb9l9GmUhGUz8c 8fCWxct0HoV7va2trV5ZK9iQvechT5yUs8PvvmOzJFqwXwCAHX20er2fBRcM4S1HeIHF2Cc/CFg6 9wWbcpbwu8RPUx4yR0JJrPjtNc1E2Gx7lqVZwm2b+Ys4SlIWJ36YQm/opn4U9nqqWyxFTw3x+O00 8wPPugbk6jFNgGRIGPymH82iZOGkSMVskcrHbpRw/ZgnSZTIbs9JHTtwwmv97PP38sFi6cax7lws A38q+3FW3Z0mTihwruYjoNMGBIr+dBn7xRTHvkiJHR6fsdMY1yzM/rjHoG0jLB8zs8+Gr1gUp7GT CG5JqDP8nhDc1kcOPAwFc0KEgoeMIBPmh6DoocutrR5BxmzSjsfsy+eW43m2xGEaw2EYDeOEp+ly SGIZLjhoiieMAUFXmsdFOjEktC2FuAbaIelODJGCKOyZEwjejnTmZEE6uUgy3vJ4zoN4Ynyawzyw 2DRCTkt1lXRIZUJua1L6PcXZwyhMkyhgZ6T7oBHAqSRzgRyhQUCYbB5GHif9buVPvBz6oZ8OT9Zw ZGkjiB1uZgMQsJYL75BNK9mQm6paki3ntcEiQ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