Use git mode in watch file
Andreas Tille
4 years ago
|
0 |
libkmlframework-java (0.0+git20150825.a2e0518-1) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* Use git mode in watch file
|
|
3 |
|
|
4 |
-- Andreas Tille <tille@debian.org> Tue, 08 Jan 2019 15:55:09 +0100
|
|
5 |
|
0 | 6 |
libkmlframework-java (0.0.20110822.r24-2) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
* Upstream moved from googlecode to github - no code changes
|
0 | |
#!/bin/sh -e
|
1 | |
# if you need to repack for whatever reason you can
|
2 | |
# use this script via uscan or directly
|
3 | |
#
|
4 | |
# FIXME: currently the code is not conform to Debian Policy
|
5 | |
# http://www.debian.org/doc/debian-policy/ch-source.html
|
6 | |
# "get-orig-source (optional)"
|
7 | |
# This target may be invoked in any directory, ...
|
8 | |
# --> currently it is assumed the script is called in the
|
9 | |
# source directory featuring the debian/ dir
|
10 | |
|
11 | |
cat <<EOT
|
12 | |
This used to work on googlecode but project was moved to
|
13 | |
https://github.com/deinlandel/kmlframework
|
14 | |
and thus this script needs to be redesigned. Since the
|
15 | |
project is deprecated anyway this was not done for the moment
|
16 | |
EOT
|
17 | |
exit 1
|
18 | |
|
19 | |
COMPRESS=xz
|
20 | |
|
21 | |
NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
|
22 | |
|
23 | |
VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
|
24 | |
|
25 | |
## NO tags no branches
|
26 | |
SVNURI="http://kmlframework.googlecode.com/svn/trunk"
|
27 | |
SVNSRCURI="$SVNURI/src"
|
28 | |
SVNDOCURI="$SVNURI/docs"
|
29 | |
revision=`LANG=C svn info ${SVNURI} | grep "^Last Changed Rev:" | sed 's/Last Changed Rev: *//'`
|
30 | |
VERSION=`echo ${VERSION}| sed "s/\.r[0-9]\+$//"`.r${revision}
|
31 | |
echo $VERSION
|
32 | |
|
33 | |
TARDIR=${NAME}-${VERSION}
|
34 | |
|
35 | |
mkdir -p ../tarballs
|
36 | |
cd ../tarballs
|
37 | |
# svn export conserves time stamps of the files, checkout does not
|
38 | |
rm -rf ${TARDIR}
|
39 | |
mkdir -p ${TARDIR}
|
40 | |
cd ${TARDIR}
|
41 | |
LC_ALL=C svn --quiet export ${SVNSRCURI}
|
42 | |
LC_ALL=C svn --quiet export ${SVNDOCURI}
|
43 | |
cd ..
|
44 | |
|
45 | |
GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
|
46 | |
rm -rf ${TARDIR}
|
16 | 16 |
ant -f src/build.xml clean
|
17 | 17 |
rm -rf lib
|
18 | 18 |
dh_clean
|
19 | |
|
20 | |
get-orig-source:
|
21 | |
uscan --verbose --force-download --repack --rename
|
0 | 0 |
version=4
|
1 | 1 |
|
2 | |
# no release tags (neither formerly at googlecode nor now at github)
|
3 | |
opts=dversionmangle=s/.*/0.No-Release/ \
|
4 | |
https://people.debian.org/~eriberto/ FakeWatchNoUpstreamReleaseForThisPackage-(\d\S+)\.gz
|
|
2 |
opts="mode=git,pretty=0.0+git%cd.%h" \
|
|
3 |
https://github.com/deinlandel/kmlframework.git HEAD
|