~ubuntu-branches/ubuntu/trusty/xmlstreambuffer/trusty

« back to all changes in this revision

Viewing changes to debian/orig-tar.sh

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-02-25 12:23:25 UTC
  • Revision ID: package-import@ubuntu.com-20140225122325-rtd2u9k9g3qcswvn
Tags: 1.5.1-1
Initial release (Closes: #732230)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
VERSION=$2
 
4
TAR=../xmlstreambuffer_$VERSION.orig.tar.xz
 
5
DIR=xmlstreambuffer-$VERSION
 
6
TAG=$(echo "streambuffer-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
 
7
 
 
8
svn export https://svn.java.net/svn/xmlstreambuffer~svn/tags/${TAG}/ $DIR
 
9
XZ_OPT=--best tar -c -J -f $TAR \
 
10
    --exclude '*.jar' \
 
11
    --exclude '*.class' \
 
12
    --exclude '*.ipr' \
 
13
    --exclude '*.iml' \
 
14
    --exclude '.settings' \
 
15
    --exclude '.project' \
 
16
    --exclude '.classpath' \
 
17
    --exclude '*.zip' \
 
18
 $DIR
 
19
rm -rf $DIR ../$TAG
 
20
 
 
21
# move to directory 'tarballs'
 
22
if [ -r .svn/deb-layout ]; then
 
23
  . .svn/deb-layout
 
24
  mv $TAR $origDir && echo "moved $TAR to $origDir"
 
25
fi