File: orig-tar.sh

package info (click to toggle)
libisnativec-java 5.3.20100629%2Bfix-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 408 kB
  • ctags: 616
  • sloc: java: 2,145; sh: 12; makefile: 6
file content (18 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

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

unzip $ZIP
mv distribution $DIR
tar -c -z -f $TAR --exclude '*.jar' --exclude '*.zip' --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