~ubuntu-branches/ubuntu/precise/libhibernate-jbosscache-java/precise

« back to all changes in this revision

Viewing changes to debian/orig-tar.sh

  • Committer: Package Import Robot
  • Author(s): Brian Thomason, by sponsor Steffen Moeller
  • Date: 2011-12-26 00:23:47 UTC
  • mfrom: (1.1.1)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20111226002347-r481ylr1w2dwdo1q
* First upload to Debian.
[ by sponsor Steffen Moeller ]
* Added Brian to uploaders and set DMUA flag
* Merged changes from 3.3.2.GA-1 to 3.3.2.GA-2  with Brian's work
* Omitted ".Final" from version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
set -e
4
4
 
5
5
# called by uscan with '--upstream-version' <version> <file>
6
 
echo "version $2"
7
6
package=`dpkg-parsechangelog | sed -n 's/^Source: //p'`
8
7
version=$2
9
8
tarball=$3
10
 
TAR=${package}_${version}.orig.tar.gz
 
9
 
 
10
unzip $tarball
 
11
rm -rf META-INF
 
12
 
 
13
TAR=../${package}_${version}.orig.tar.gz
11
14
DIR=${package}-${version}.orig
12
 
REPO="http://anonsvn.jboss.org/repos/hibernate/core/tags/hibernate-${version}/cache-jbosscache/"
13
 
 
14
 
svn export $REPO $DIR
 
15
 
 
16
mkdir -p $DIR/src/main/java
 
17
mv org/* $DIR/src/main/java
 
18
rmdir org
 
19
 
15
20
GZIP=--best tar --numeric --group 0 --owner 0 -c -v -z -f $TAR $DIR
16
21
 
17
22
rm -rf $tarball $DIR