| 1 | #!/bin/sh -e |
| 2 | |
| 3 | VERSION=$1 |
| 4 | TAR=../saxonhe_$VERSION+dfsg.orig.tar.xz |
| 5 | DIR=saxonhe-$VERSION |
| 6 | TAG="$VERSION" |
| 7 | |
| 8 | svn -q export https://dev.saxonica.com/repos/archive/opensource/tags/${TAG}/hej $DIR |
| 9 | XZ_OPT=--best tar cJf $TAR \ |
| 10 | --exclude 'javax' \ |
| 11 | --exclude 'net/sf/saxon/dotnet' \ |
| 12 | --exclude 'net/sf/saxon/data/w3c' \ |
| 13 | --exclude 'net/sf/saxon/option' $DIR |
| 14 | rm -rf $DIR ../$TAG |