diff --git a/org.eclipse.wtp.releng.webupdatesite/build-home/copyToRelease-code.sh b/org.eclipse.wtp.releng.webupdatesite/build-home/copyToRelease-code.sh index 588a33306a74cff09696c8e4cdf59a2978866012..f1376acef32b7afa6837e061203badc1c5c53e51 100644 --- a/org.eclipse.wtp.releng.webupdatesite/build-home/copyToRelease-code.sh +++ b/org.eclipse.wtp.releng.webupdatesite/build-home/copyToRelease-code.sh @@ -12,6 +12,14 @@ echo " where <stream> is one of Europa, Callisto" echo "" exit +if [ "${2}" != "-doit" ] ; then + echo " This is a dry run. Add -doit to actually remove" + doit="--dry-run" +else + doit="" +fi + + elif [ "${1}" = "Europa" ] then fromDir=${HOME}/downloads/webtools/declaredUpdates @@ -37,6 +45,12 @@ echo " from ${fromDir}" echo " to ${toDir}" echo "" -#cp -f -p -r -v --update ${fromDir}/features --target-directory=${toDir}/ -#cp -f -p -r -v --update ${fromDir}/plugins --target-directory=${toDir}/ +rsync $doit --ignore-existing -rv ${fromDir}/features ${toDir} +rsync $doit --ignore-existing -rv ${fromDir}/plugins ${toDir} + +if [ "$doit" = "--dry-run" ] ; then + echo " This was a dry run. Add -doit to actually remove" +fi + +