File: orig-tar.sh

package info (click to toggle)
libjlatexmath-java 0.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,964 kB
  • sloc: xml: 21,132; java: 12,591; makefile: 13; sh: 12
file content (20 lines) | stat: -rwxr-xr-x 397 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
20
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=libjlatexmath-java-$2
TAR=../libjlatexmath-java_$2.orig.tar.gz

# clean up the upstream tarball
unzip $3 
mv jlatexmath-$2 $DIR
tar -c -z -f $TAR $DIR
rm -rf $DIR $3

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

exit 0