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 Options
|
||||
echo go - does the sync for real
|
||||
echo check - checks for changed files
|
||||
|
||||
echo
|
||||
|
||||
echo
|
||||
echo For a better explanation of the output flags please check --itemize-changes at rsync man page
|
||||
echo
|
||||
|
@ -38,20 +44,27 @@ for f in `find conf -iname "*.sh"`
|
|||
RSYNC_SSH="--rsh=ssh $SSH_OPTS"
|
||||
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"
|
||||
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
|
||||
|
||||
# check for changed files
|
||||
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
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
echo "*******************************************************************************"
|
||||
echo "******************************* CHANGED FILES *******************************"
|
||||
echo "*******************************************************************************"
|
||||
cat $CHANGED_LOG
|
||||
echo "*******************************************************************************"
|
||||
echo "*******************************************************************************"
|
||||
echo "*******************************************************************************"
|
||||
|
||||
if [ "$1" == "check" ]; then
|
||||
echo "*******************************************************************************"
|
||||
echo "******************************* CHANGED FILES *******************************"
|
||||
echo "*******************************************************************************"
|
||||
cat $CHANGED_LOG
|
||||
echo "*******************************************************************************"
|
||||
echo "*******************************************************************************"
|
||||
echo "*******************************************************************************"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue