debian/watch: Track the release tags on GitHub
Emmanuel Bourg
7 years ago
|
0 |
findbugs (3.0.1-3) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* debian/watch: Track the release tags on GitHub
|
|
4 |
|
|
5 |
-- Emmanuel Bourg <ebourg@apache.org> Wed, 10 Aug 2016 09:44:16 +0200
|
|
6 |
|
0 | 7 |
findbugs (3.0.1-2) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Team upload.
|
0 | 0 |
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
1 | 1 |
Upstream-Name: findbugs
|
2 | |
Source: http://findbugs.sourceforge.net/
|
|
2 |
Source: https://github.com/findbugsproject/findbugs
|
3 | 3 |
|
4 | 4 |
Files: src/gui/edu/umd/cs/findbugs/gui2/CloudCommentsPane.java
|
5 | 5 |
Copyright: 2010 Keith Lea
|
0 | 0 |
#!/bin/sh -e
|
1 | 1 |
|
|
2 |
PACKAGE=$(dpkg-parsechangelog -S Source)
|
2 | 3 |
VERSION=$2
|
3 | |
DIR=findbugs-$VERSION
|
4 | |
TAR=findbugs_$VERSION.orig.tar.xz
|
|
4 |
DIR=${PACKAGE}-${VERSION}
|
|
5 |
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
|
5 | 6 |
|
6 | |
# clean up the upstream tarball
|
7 | |
#unzip -x $3
|
8 | |
tar xzvf $3
|
9 | |
cd $DIR
|
10 | |
#Remove shipped jar + doc without sources
|
11 | |
rm -rf lib/*.jar lib/*.zip lib/*.txt
|
12 | |
rm -rf src/doc/pressRelease.pdf doc/pressRelease.pdf build-lib/
|
13 | |
cd ..
|
14 | |
tar Jcvf ../$TAR $DIR
|
15 | |
rm -rf $DIR $3
|
16 | |
|
17 | |
# move to directory 'tarballs'
|
18 | |
if [ -r .svn/deb-layout ]; then
|
19 | |
. .svn/deb-layout
|
20 | |
mv $TAR $origDir
|
21 | |
echo "moved $TAR to $origDir"
|
22 | |
fi
|
23 | |
|
24 | |
exit 0
|
|
7 |
mkdir $DIR.tmp $DIR
|
|
8 |
tar -xf $3 --strip-components=1 -C $DIR.tmp
|
|
9 |
mv $DIR.tmp/findbugs/* $DIR
|
|
10 |
rm $3
|
|
11 |
XZ_OPT=--best tar -c -v -J -f $TAR \
|
|
12 |
--exclude '*.jar' \
|
|
13 |
--exclude '*.pdf' \
|
|
14 |
--exclude '.settings' \
|
|
15 |
--exclude '.classpath' \
|
|
16 |
--exclude '.project' \
|
|
17 |
--exclude '.idea' \
|
|
18 |
$DIR
|
|
19 |
rm -Rf $DIR.tmp $DIR
|
0 | 0 |
version=3
|
1 | |
http://sf.net/findbugs/findbugs-([\d\.]+)-source\.zip \
|
2 | |
debian debian/orig-tar.sh
|
|
1 |
opts=uversionmangle=s/_preview/~preview/;s/_RC/~rc/ \
|
|
2 |
https://github.com/findbugsproject/findbugs/tags .*/archive/([\d\.]+.*).tar.gz debian debian/orig-tar.sh
|