~hudson-ubuntu/+junk/windows-remote-command

« back to all changes in this revision

Viewing changes to debian/orig-tar.sh

  • Committer: James Page
  • Date: 2010-12-06 10:47:32 UTC
  • Revision ID: james.page@canonical.com-20101206104732-nctfskg5ky3vinf4
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
VERSION=$2
 
4
TAR=../windows-remote-command_$VERSION.orig.tar.gz
 
5
DIR=windows-remote-command-$VERSION
 
6
TAG=$(echo "windows-remote-command-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
 
7
 
 
8
svn export https://svn.java.net/svn/hudson~svn/tags/${TAG}/ $DIR
 
9
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
 
10
rm -rf $DIR ../$TAG
 
11
 
 
12
# move to directory 'tarballs'
 
13
if [ -r .svn/deb-layout ]; then
 
14
  . .svn/deb-layout
 
15
  mv $TAR $origDir && echo "moved $TAR to $origDir"
 
16
fi