File: orig-tar.sh

package info (click to toggle)
libajaxtags-java 1.5.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 716 kB
  • sloc: java: 3,536; xml: 849; jsp: 709; sh: 10; makefile: 3
file content (19 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

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

TAR=libajaxtags-java_$2.orig.tar.gz

# clean up the upstream tarball
unzip $3
tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' \
  --exclude '*src/main/resources/*' ajaxtags-*/
rm -rf $3 ajaxtags-*/

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