File: orig-tar.sh

package info (click to toggle)
libisrt-java 4.8.20100629-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,140 kB
  • sloc: java: 17,849; sh: 12; makefile: 8
file content (17 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

VERSION=$2
ZIP=$3
TAR=../libisrt-java_$VERSION.orig.tar.gz
DIR=libisrt-java-$VERSION

unzip $ZIP
mv distribution $DIR
tar -c -z -f $TAR --exclude '*.jar' --exclude '*/javadoc/*' $DIR
rm -rf $DIR $ZIP

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