script fixes

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@348720 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-11-24 12:11:33 +00:00
parent 374776dd40
commit d978342687
1 changed files with 7 additions and 4 deletions

View File

@ -5,11 +5,14 @@ set -x
svnlook=/usr/local/subversion/bin/svnlook
repos=/home/projects/maven/repository-staging/to-ibiblio/maven2
# TODO: handle deletions
$svnlook changed -r $2 $1 | egrep '\.pom$' | while read t1 t2
do
mkdir -p `dirname $repos/$t2`
$svnlook cat -r $2 $1 $t2 >$repos/$t2
sha1sum $repos/$t2 >$repos/$t2.sha1
md5sum $repos/$t2 >$repos/$t2.md5
file=$repos/`echo $t2 | sed 's/^repository\///'`
mkdir -p `dirname $file`
$svnlook cat -r $2 $1 $t2 >$file
sha1sum $file >$file.sha1
md5sum $file >$file.md5
chgroup maven $file $file.md5 $file.sha1
done