From d978342687aa95628cb5ac368588dbf93dbf708d Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Thu, 24 Nov 2005 12:11:33 +0000 Subject: [PATCH] script fixes git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@348720 13f79535-47bb-0310-9956-ffa450edef68 --- maven-meeper/src/bin/post-commit-pom.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/maven-meeper/src/bin/post-commit-pom.sh b/maven-meeper/src/bin/post-commit-pom.sh index ad45f6aca0..79649835c8 100755 --- a/maven-meeper/src/bin/post-commit-pom.sh +++ b/maven-meeper/src/bin/post-commit-pom.sh @@ -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