mirror of https://github.com/apache/archiva.git
Don't check for changed files if user doesn't want to
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@453525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5167bfcfe5
commit
bb5af95ff1
|
@ -6,6 +6,12 @@ echo This will be removed when the repository manager is in place.
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo Options
|
||||||
|
echo go - does the sync for real
|
||||||
|
echo check - checks for changed files
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo For a better explanation of the output flags please check --itemize-changes at rsync man page
|
echo For a better explanation of the output flags please check --itemize-changes at rsync man page
|
||||||
echo
|
echo
|
||||||
|
@ -38,15 +44,22 @@ for f in `find conf -iname "*.sh"`
|
||||||
RSYNC_SSH="--rsh=ssh $SSH_OPTS"
|
RSYNC_SSH="--rsh=ssh $SSH_OPTS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check for changed files
|
||||||
|
if [ "$1" == "check" ]; then
|
||||||
|
|
||||||
|
rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM $BASEDIR/$TO >> $CHANGED_LOG
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
echo "Syncing $FROM -> $TO"
|
echo "Syncing $FROM -> $TO"
|
||||||
rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
|
rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
|
||||||
rsync --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
|
rsync --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
|
||||||
|
|
||||||
# check for changed files
|
fi
|
||||||
rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM $BASEDIR/$TO >> $CHANGED_LOG
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$1" == "check" ]; then
|
||||||
echo "*******************************************************************************"
|
echo "*******************************************************************************"
|
||||||
echo "******************************* CHANGED FILES *******************************"
|
echo "******************************* CHANGED FILES *******************************"
|
||||||
echo "*******************************************************************************"
|
echo "*******************************************************************************"
|
||||||
|
@ -54,4 +67,4 @@ cat $CHANGED_LOG
|
||||||
echo "*******************************************************************************"
|
echo "*******************************************************************************"
|
||||||
echo "*******************************************************************************"
|
echo "*******************************************************************************"
|
||||||
echo "*******************************************************************************"
|
echo "*******************************************************************************"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue