File: orig-tar.sh

package info (click to toggle)
tomcat7 7.0.75-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 31,036 kB
  • ctags: 39,579
  • sloc: java: 261,799; xml: 56,572; jsp: 3,087; sh: 1,383; perl: 269; makefile: 69
file content (18 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

VERSION=$2
TAR=../tomcat7_$VERSION.orig.tar.xz
DIR=tomcat7-$VERSION
TAG=$(echo TOMCAT_$VERSION | sed -e 's/\./_/g')

svn export http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/$TAG $DIR
XZ_OPT=--best tar -c -J -f $TAR --exclude 'taglibs-standard-*.jar' $DIR
rm -rf $DIR ../$TAG

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