#!/bin/sh

echo This script is very temporary. Please validate all input files in the source 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-from=/home/projects/maven/repository-tools/syncopate/exclusions.txt -e ssh $OPTS --ignore-existing -avz $FROM $TO"
echo "Syncing $FROM -> $TO"
$CMD

#!/bin/sh

echo This script is very temporary. Please validate all input files in the source 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.

echo

echo
echo If you see a "c" flag in the output for something different than maven-metadata files
echo then we have a problem, because it means the checksum of the file changed
echo
echo For a better explanation of the output flags please check --itemize-changes at rsync man page
echo

OPTS=-n
if [ "$1" == "go" ]; then
  echo Doing sync for real
  OPTS=
else
  echo Not syncing
fi

cd $HOME/repository-staging/to-ibiblio/maven2

# ideally we would use --ignore-existing but we need to copy the metadata files

CMD="rsync --exclude-from=/home/projects/maven/repository-tools/syncopate/exclusions.txt -e ssh $OPTS -acivz $FROM $TO"
echo "Syncing $FROM -> $TO"
$CMD

Remove --ignore-existing, add -c and -i
Remove --ignore-existing, add -c and -i

git-svn-id: 2c527eb49caa05e19d6b2be874bf74fa9d7ea670@410693 13f79535-47bb-0310-9956-ffa450edef68
