Allow sync of subfolders only

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@358941 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2005-12-24 17:47:42 +00:00
parent a06b58fd7d
commit f734b900a7
1 changed files with 8 additions and 5 deletions

View File

@ -2,20 +2,23 @@
GROUPID=$1
src=/home/projects/maven/repository-staging/pom-svn-repository
dest=/home/projects/maven/repository-staging/to-ibiblio/maven2
basesrc=/home/projects/maven/repository-staging/pom-svn-repository
basedest=/home/projects/maven/repository-staging/to-ibiblio/maven2
if [ ! -z $GROUPID ]
then
src=$src/$GROUPID
dest=$src/$GROUPID
dest=$dest/$GROUPID
else
src=$basesrc
dest=$basedest
fi
rsync -e ssh -v -rpt --exclude=.svn --exclude=updated-poms.log $src/ $dest/ > $src/updated-poms.log
rsync -e ssh -v -rpt --exclude=.svn --exclude=updated-poms.log $src/ $dest/ > $basesrc/updated-poms.log
for f in `grep .pom $src/updated-poms.log` ; do
for f in `grep .pom $basesrc/updated-poms.log` ; do
md5sum $dest/$f > $dest/$f.md5 ;
sha1sum $dest/$f > $dest/$f.sha1;
done