Codebase list libkmlframework-java / 0dc324c
Latest checkout of google code svn Andreas Tille 8 years ago
2 changed file(s) with 42 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 libkmlframework-java (0.0.20090718-2) UNRELEASED; urgency=medium
0 libkmlframework-java (0.0.20110822.r24-1) UNRELEASED; urgency=medium
11
2 * Latest checkout of google code svn (upstream did not created a
3 release tarball)
24 * Moved to Git
35 * cme fix dpkg-control
46 * debhelper 9
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 COMPRESS=xz
12
13 NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
14
15 VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
16
17 ## NO tags no branches
18 SVNURI="http://kmlframework.googlecode.com/svn/trunk"
19 SVNSRCURI="$SVNURI/src"
20 SVNDOCURI="$SVNURI/docs"
21 revision=`LANG=C svn info ${SVNURI} | grep "^Last Changed Rev:" | sed 's/Last Changed Rev: *//'`
22 VERSION=`echo ${VERSION}| sed "s/\.r[0-9]\+$//"`.r${revision}
23 echo $VERSION
24
25 TARDIR=${NAME}-${VERSION}
26
27 mkdir -p ../tarballs
28 cd ../tarballs
29 # svn export conserves time stamps of the files, checkout does not
30 rm -rf ${TARDIR}
31 mkdir -p ${TARDIR}
32 cd ${TARDIR}
33 LC_ALL=C svn --quiet export ${SVNSRCURI}
34 LC_ALL=C svn --quiet export ${SVNDOCURI}
35 cd ..
36
37 GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
38 rm -rf ${TARDIR}