File: orig-tar.sh

package info (click to toggle)
libsequence-library-java 1.0.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 504 kB
  • sloc: java: 3,110; xml: 35; sh: 18; makefile: 6
file content (20 lines) | stat: -rwxr-xr-x 533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

PACKAGE=$(dpkg-parsechangelog -S Source)
VERSION=$2

if [ "$VERSION" = "" ] ; then
      VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)+[dfsg0-9.]\+-[0-9]\+$/\1/'`
fi

DIR=${PACKAGE}-${VERSION}+dfg
TAR=../${PACKAGE}_${VERSION}+dfsg.orig.tar.xz

svn export http://svn.svnkit.com/repos/3rdparty/de.regnis.q.sequence/tags/$VERSION $DIR
tar -c -J -f $TAR \
    --exclude '*.jar' \
    --exclude '.settings' \
    --exclude 'gradle' \
    --exclude 'gradlew*' \
    $DIR
rm -rf $DIR $3