From 5ab9cb74e334b2307525be64b0951a9b425662dc Mon Sep 17 00:00:00 2001
From: david_williams <david_williams>
Date: Sat, 26 May 2007 21:49:55 +0000
Subject: [PATCH] small improvement

---
 .../build-home/copyToRelease-code.sh          | 28 ++++++++++++-------
 1 file changed, 18 insertions(+), 10 deletions(-)

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 f1376acef..5e5a89e64 100644
--- a/org.eclipse.wtp.releng.webupdatesite/build-home/copyToRelease-code.sh
+++ b/org.eclipse.wtp.releng.webupdatesite/build-home/copyToRelease-code.sh
@@ -2,6 +2,9 @@
 
 # script to copy update jars from their staging area to the releases area
 
+
+
+
 if [ -z "${1}" ] 
 then 
 
@@ -12,12 +15,7 @@ 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" ] 
@@ -39,17 +37,27 @@ else
 	exit
 fi 
 
+
+if [ "${2}" != "-doit" ] ; then
+   echo ""
+   echo "    This is a dry run. Add -doit to actually copy"
+   echo ""
+   doit="--dry-run"
+else
+   doit=""
+fi
+
 echo ""
 echo "    Copying new plugins and features "
 echo "        from  ${fromDir}"
 echo "          to  ${toDir}"
 echo ""
 
-rsync $doit  --ignore-existing -rv ${fromDir}/features ${toDir}
-rsync $doit  --ignore-existing -rv ${fromDir}/plugins ${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"
+if [ "${doit}" = "--dry-run" ] ; then
+   echo "    This was a dry run. Add -doit to actually copy"
 fi
 
 
-- 
GitLab