~ubuntu-branches/ubuntu/precise/xslthl/precise

« back to all changes in this revision

Viewing changes to debian/get-orig-source

  • Committer: Package Import Robot
  • Author(s): Mathieu Malaterre
  • Date: 2011-11-27 15:38:11 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20111127153811-t7dfhqtlzcflm91w
Tags: 2.0.2-4
* Add missing B-D on ant. Closes: #648906
* Update d/control VCS URLs
* Remove get-orig-source, replaced with orig-tar.sh
* Use DEP3 for patch formatting

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# I could not find the src on the sf.net download page.
3
 
# Instead pull down the svn tree
4
 
set -ex
5
 
 
6
 
PACKAGE=xslthl
7
 
 
8
 
VERSION=${VERSION:-$2}
9
 
TARFILE=${TARFILE:-$3}
10
 
 
11
 
if [ -z ${VERSION}]; then
12
 
VERSION=`dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)-[^-]*$/\1/p'`
13
 
fi
14
 
 
15
 
REVISION=`echo $VERSION | sed -e 's/^.*svn//g'`
16
 
#REVISION=10509
17
 
FOLDER=${PACKAGE}-${VERSION}
18
 
 
19
 
if [ -z ${TARFILE} ]; then
20
 
TARFILE=${PACKAGE}_${VERSION}.orig.tar.gz
21
 
fi
22
 
 
23
 
#svn export --quiet --revision ${REVISION} http://xslthl.svn.sourceforge.net/svnroot/xslthl/tags/v2_0_1/ ${FOLDER}
24
 
svn export --quiet http://xslthl.svn.sourceforge.net/svnroot/xslthl/tags/v2_0_2/ ${FOLDER}
25
 
 
26
 
cd ${FOLDER}
27
 
# saxon6 / saxon9 / xalan are packaged inside the source...
28
 
rm -rf ./lib
29
 
# examples have weird license or no license. we do not need them:
30
 
rm -rf ./examples
31
 
cd ..
32
 
 
33
 
GZIP=-9 tar czf ${TARFILE} ${FOLDER}
34
 
rm -rf ${FOLDER}
35