File: orig-tar.sh

package info (click to toggle)
libjsr305-java 0.1~%2Bsvn49-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 364 kB
  • ctags: 128
  • sloc: java: 571; xml: 217; makefile: 17; sh: 11
file content (16 lines) | stat: -rwxr-xr-x 464 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh 

set -e

package="`dpkg-parsechangelog | sed -n 's/^Source: //p'`"
version="`dpkg-parsechangelog | sed -n 's/^Version: //p' | sed 's/-.*$//'`"
REPO="http://jsr-305.googlecode.com/svn/trunk"
rev="`echo $version | sed 's/^.*+svn\(.*\)/\1/'`"
TAR="${package}_${version}.orig.tar.gz"
DIR="${package}-${version}.orig"

svn export -r $rev ${REPO} ${DIR}
GZIP=--best tar --numeric --group 0 --owner 0 -cvzf ${TAR} \
    --exclude=javadoc ${DIR}

rm -rf ${DIR}