File: orig-tar.sh

package info (click to toggle)
kdgcommons-java 1.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,384 kB
  • ctags: 2,357
  • sloc: java: 16,291; xml: 457; sh: 9; makefile: 4
file content (12 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

PACKAGE=$(dpkg-parsechangelog -S Source)
VERSION=$2
DIR=${PACKAGE}-${VERSION}
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz

rm $3
svn export svn://svn.code.sf.net/p/kdgcommons/code/tags/rel_$(echo $VERSION | tr '.' '_') $DIR
XZ_OPT=--best tar -c -v -J -f $TAR $DIR
rm -Rf $DIR