File: orig-tar.sh

package info (click to toggle)
logback 1:0.9.18+dak1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,912 kB
  • ctags: 7,792
  • sloc: java: 39,286; xml: 3,628; sql: 354; sh: 113; makefile: 17
file content (19 lines) | stat: -rwxr-xr-x 352 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

# $2 = version
# $3 = file
DIR=logback_$2
TAR=../logback_$2.orig.tar.gz

# clean up the upstream tarball
tar xzf $3
mv logback-$2 $DIR
GZIP=--best tar czf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $3 $origDir
  echo "moved $3 to $origDir"
fi