| 1 | #!/bin/sh -e |
| 2 | set -x |
| 3 | git clone https://github.com/henkboom/pax-britannica.git |
| 4 | cd ./pax-britannica |
| 5 | # Should really read version number from Info.plist, but I'm too lazy to parse |
| 6 | # the XML dynamically... |
| 7 | VERSION=1.0.0 |
| 8 | git archive --format=tar --prefix=pax-britannica-${VERSION}/ HEAD \ |
| 9 | -o ../pax-britannica_${VERSION}.orig.tar |
| 10 | gzip --best ../pax-britannica_${VERSION}.orig.tar |
| 11 | for sub in dokidoki dokidoki-support; do |
| 12 | git submodule update --init ${sub} |
| 13 | cd ./${sub} |
| 14 | git archive --format=tar HEAD --prefix=${sub}/ \ |
| 15 | -o ../../pax-britannica_${VERSION}.orig-${sub}.tar |
| 16 | gzip --best ../../pax-britannica_${VERSION}.orig-${sub}.tar |
| 17 | cd .. |
| 18 | done |
| 19 | cd .. |