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 #!/bin/sh
echo This script is very temporary. Please validate all input files in the apache repository before blindly copying them in. FROM=jvanzyl@cvs.apache.org:/www/www.apache.org/dist/maven-repository/*
echo Ensure all artifacts have a valid POM, and are signed used PGP. TO=.
echo This will be removed when the repository manager is in place.
OPTS=-n ./m2-sync.sh
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/* .

View File

@ -1,15 +1,6 @@
#!/bin/sh #!/bin/sh
echo This script is very temporary. Please validate all input files in the repository before blindly copying them in. FROM=carlossg@shell.sourceforge.net:/home/groups/m/ma/maven-taglib/htdocs/m2repo/net/sourceforge/maven-taglib/*
echo Ensure all artifacts have a valid POM. TO=net/sourceforge/maven-taglib/
echo This will be removed when the repository manager is in place.
OPTS=-n ./m2-sync.sh
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/

View File

@ -1,16 +1,6 @@
#!/bin/sh #!/bin/sh
echo This script is very temporary. Please validate all input files in the repository before blindly copying them in. FROM=maven@forge.objectweb.org:../../groups/maven/htdocs/maven2/org/objectweb
echo Ensure all artifacts have a valid POM. TO=org
echo This will be removed when the repository manager is in place.
OPTS=-n ./m2-sync.sh
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