You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/05/06 08:44:25 UTC
svn commit: r1742514 - /commons/scripts/ReleaseDist.sh
Author: sebb
Date: Fri May 6 08:44:25 2016
New Revision: 1742514
URL: http://svn.apache.org/viewvc?rev=1742514&view=rev
Log:
Remove RN if present in target
Modified:
commons/scripts/ReleaseDist.sh
Modified: commons/scripts/ReleaseDist.sh
URL: http://svn.apache.org/viewvc/commons/scripts/ReleaseDist.sh?rev=1742514&r1=1742513&r2=1742514&view=diff
==============================================================================
--- commons/scripts/ReleaseDist.sh (original)
+++ commons/scripts/ReleaseDist.sh Fri May 6 08:44:25 2016
@@ -30,7 +30,7 @@ TAGNAMERC="${VER}_$RC"
DISTBASE=https://dist.apache.org/repos/dist
echo Checking if dev/commons/$SVNDIR/$TAGNAMERC exists
-#curl --head -f -sS $DISTBASE/dev/commons/$SVNDIR/$TAGNAMERC >/dev/null || exit
+curl --head -f -sS $DISTBASE/dev/commons/$SVNDIR/$TAGNAMERC >/dev/null || exit
echo Found dev/commons/$SVNDIR/$TAGNAMERC
SVNMUCC=/tmp/${TAGNAMERC}.svnmucc
@@ -40,6 +40,10 @@ doMove() {
echo "dev/commons/$SVNDIR/$TAGNAMERC/$1"
echo "release/commons/$SVNDIR/$2$1"
}
+doReMove() {
+ echo "rm"
+ echo "release/commons/$SVNDIR/$2$1"
+}
handle() {
NAME=${AID}-${VER}-$1.$2$3
doMove $NAME $SUBDIR
@@ -61,6 +65,10 @@ do
done
done
done
+
+# remove RN if already present
+curl --head -f -sS $DISTBASE/release/commons/$SVNDIR/RELEASE-NOTES.txt >/dev/null 2>&1 && doRemove RELEASE-NOTES.txt
+
curl --head -f -sS $DISTBASE/dev/commons/$SVNDIR/$TAGNAMERC/RELEASE-NOTES.txt >/dev/null 2>&1 && doMove RELEASE-NOTES.txt
} > $SVNMUCC