Keep slf4j-site/pom.xml in the upstream tarball
Emmanuel Bourg
7 years ago
0 | 0 | #!/bin/sh -e |
1 | 1 | |
2 | # $2 = version | |
3 | # $3 = file | |
4 | DIR=libslf4j-java-$2.orig | |
5 | TAR=../libslf4j-java_$2.orig.tar.xz | |
2 | PACKAGE=$(dpkg-parsechangelog -S Source) | |
3 | VERSION=$2 | |
4 | DIR=${PACKAGE}-${VERSION} | |
5 | TAR=../${PACKAGE}_${VERSION}.orig.tar.xz | |
6 | 6 | |
7 | # clean up the upstream tarball | |
8 | tar xzf $3 | |
7 | mkdir $DIR | |
8 | tar -xf $3 --strip-components=1 -C $DIR | |
9 | 9 | rm $3 |
10 | mv slf4j-$2 $DIR | |
11 | XZ_OPT=--best tar cJf $TAR -X debian/orig-tar.exclude $DIR | |
12 | rm -rf $DIR | |
13 | ||
14 | # move to directory 'tarballs' | |
15 | if [ -r .svn/deb-layout ]; then | |
16 | . .svn/deb-layout | |
17 | mv $3 $origDir | |
18 | echo "moved $3 to $origDir" | |
19 | fi | |
10 | XZ_OPT=--best tar -c -v -J -f $TAR \ | |
11 | --exclude '*.jar' \ | |
12 | --exclude 'site' \ | |
13 | $DIR | |
14 | rm -Rf $DIR |