Skip to content
Snippets Groups Projects
Commit 5ab9cb74 authored by david_williams's avatar david_williams
Browse files

small improvement

parent 54af0813
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment