Avoid duplication in scripts

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@376891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2006-02-10 23:55:08 +00:00
parent 2aa65d1490
commit a7fe486fe8
4 changed files with 27 additions and 37 deletions

View File

@ -0,0 +1,18 @@
#!/bin/sh
echo This script is very temporary. Please validate all input files in the apache repository before blindly copying them in.
echo Ensure all artifacts have a valid POM, and are signed used PGP.
echo This will be removed when the repository manager is in place.
OPTS=-n
if [ "$1" == "go" ]; then
echo Doing sync for real
OPTS=
else
echo Not syncing
fi
cd $HOME/repository-staging/to-ibiblio/maven2
CMD="rsync --exclude="README.txt" -e ssh $OPTS -avz $FROM $TO"
echo Syncing $FROM -> $TO
$CMD

View File

@ -1,15 +1,6 @@
#!/bin/sh
echo This script is very temporary. Please validate all input files in the apache repository before blindly copying them in.
echo Ensure all artifacts have a valid POM, and are signed used PGP.
echo This will be removed when the repository manager is in place.
FROM=jvanzyl@cvs.apache.org:/www/www.apache.org/dist/maven-repository/*
TO=.
OPTS=-n
if [ "$1" == "go" ]; then
echo Doing sync for real
OPTS=
fi
cd $HOME/repository-staging/to-ibiblio/maven2
echo rsync --exclude="README.txt" -e ssh $OPTS -avz jvanzyl@cvs.apache.org:/www/www.apache.org/dist/maven-repository/* .
rsync --exclude="README.txt" -e ssh $OPTS -avz jvanzyl@cvs.apache.org:/www/www.apache.org/dist/maven-repository/* .
./m2-sync.sh

View File

@ -1,15 +1,6 @@
#!/bin/sh
echo This script is very temporary. Please validate all input files in the repository before blindly copying them in.
echo Ensure all artifacts have a valid POM.
echo This will be removed when the repository manager is in place.
FROM=carlossg@shell.sourceforge.net:/home/groups/m/ma/maven-taglib/htdocs/m2repo/net/sourceforge/maven-taglib/*
TO=net/sourceforge/maven-taglib/
OPTS=-n
if [ "$1" == "go" ]; then
echo Doing sync for real
OPTS=
fi
cd $HOME/repository-staging/to-ibiblio/maven2
echo rsync --exclude="README.txt" -e ssh $OPTS -avz carlossg@shell.sourceforge.net:/home/groups/m/ma/maven-taglib/htdocs/m2repo/net/sourceforge/maven-taglib/* net/sourceforge/maven-taglib/
rsync --exclude="README.txt" -e ssh $OPTS -avz carlossg@shell.sourceforge.net:/home/groups/m/ma/maven-taglib/htdocs/m2repo/net/sourceforge/maven-taglib/* net/sourceforge/maven-taglib/
./m2-sync.sh

View File

@ -1,16 +1,6 @@
#!/bin/sh
echo This script is very temporary. Please validate all input files in the repository before blindly copying them in.
echo Ensure all artifacts have a valid POM.
echo This will be removed when the repository manager is in place.
FROM=maven@forge.objectweb.org:../../groups/maven/htdocs/maven2/org/objectweb
TO=org
OPTS=-n
if [ "$1" == "go" ]; then
echo Doing sync for real
OPTS=
fi
cd $HOME/repository-staging/to-ibiblio/maven2
CMD="rsync --exclude="README.txt" -e ssh $OPTS -avz maven@forge.objectweb.org:../../groups/maven/htdocs/maven2/org/objectweb org"
echo $CMD
$CMD
./m2-sync.sh