File: orig-tar.sh

package info (click to toggle)
libtablelayout-java 20090826-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 328 kB
  • ctags: 249
  • sloc: java: 1,161; xml: 25; sh: 14; makefile: 5
file content (23 lines) | stat: -rwxr-xr-x 507 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>

DIR=tablelayout-$2
TAR=../libtablelayout-java_$2.orig.tar.gz

# clean up the upstream tarball
mkdir -p $DIR/src/org/debian/tablelayout
(cd $DIR && jar xf ../$3)
mv $DIR/info/clearthought/layout/* $DIR/src/org/debian/tablelayout/
rm -rf $DIR/info/
tar -c -z -f $TAR $DIR
rm -rf $DIR
rm -rf $3

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