[Asterisk-code-review] processpending and releaser updates (repotools[master])

Kevin Harwell asteriskteam at digium.com
Tue Feb 9 17:06:58 CST 2016


Kevin Harwell has uploaded a new change for review.

  https://gerrit.asterisk.org/2223

Change subject: processpending and releaser updates
......................................................................

processpending and releaser updates

Before running processpending it is easy to forget to update the local repo, so
this adds a 'svn up' statement before processing.

This also fixes releaser.sh to make sure all the old file links get removed.

Change-Id: I8cdad1f5fb193561dcbbedc783ef0d70143e4dd5
---
M processpending
M releaser.sh
2 files changed, 13 insertions(+), 66 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/repotools refs/changes/23/2223/1

diff --git a/processpending b/processpending
index cfb72a2..3b4e57d 100755
--- a/processpending
+++ b/processpending
@@ -18,6 +18,7 @@
 
 read
 
+svn up
 for n in `ls pending` ; do
 	svn mv pending/$n releases/
 	ln -s releases/$n $n
diff --git a/releaser.sh b/releaser.sh
index b1febe8..65697cb 100755
--- a/releaser.sh
+++ b/releaser.sh
@@ -26,26 +26,11 @@
 if [ "$TYPE" = "release" ]; then
 
 	if [ "$PROJECT" = "asterisk" ]; then
-		cd ~/downloads/asterisk-site
-
 		# Remove old files
 		echo "Removing links to Asterisk $OLD_VERSION and $BRANCH-current."
-		svn rm asterisk-$OLD_VERSION.tar.gz
-		svn rm asterisk-$OLD_VERSION.tar.gz.asc
-		svn rm asterisk-$OLD_VERSION.tar.gz.sha1
-		svn rm asterisk-$BRANCH-current.tar.gz
-		svn rm asterisk-$BRANCH-current.tar.gz.asc
-		svn rm asterisk-$BRANCH-current.sha1
-		svn rm asterisk-$BRANCH-current.sha256
-		svn rm asterisk-$BRANCH-current.md5
-		svn rm asterisk-$OLD_VERSION-patch.tar.gz
-		svn rm asterisk-$OLD_VERSION-patch.tar.gz.asc
-		svn rm asterisk-$BRANCH-current-patch.tar.gz
-		svn rm asterisk-$BRANCH-current-patch.tar.gz.asc
-		svn rm asterisk-$OLD_VERSION-summary.html
-		svn rm asterisk-$OLD_VERSION-summary.txt
-		svn rm asterisk-$BRANCH-current-summary.html
-		svn rm asterisk-$BRANCH-current-summary.txt
+		find -maxdepth 1 -type l -name "asterisk-$OLD_VERSION*" -exec svn rm {} \;
+		find -maxdepth 1 -type l -name "asterisk-$BRANCH-current*" -exec svn rm {} \;
+
 		svn rm ChangeLog-$OLD_VERSION
 		svn rm README-$OLD_VERSION
 		svn rm ChangeLog-$BRANCH-current
@@ -71,26 +56,11 @@
 		sleep 3
 		svn commit -m "Adding links for Asterisk $NEW_VERSION and $BRANCH-current."
 	elif [ "$PROJECT" = "certified-asterisk" ]; then
-		cd ~/downloads/certified-asterisk-site
-
 		# Remove old files
 		echo "Removing links to Certified Asterisk $OLD_VERSION and $BRANCH-current."
-		svn rm certified-asterisk-$OLD_VERSION.tar.gz
-		svn rm certified-asterisk-$OLD_VERSION.tar.gz.asc
-		svn rm certified-asterisk-$OLD_VERSION.tar.gz.sha1
-		svn rm certified-asterisk-$BRANCH-current.tar.gz
-		svn rm certified-asterisk-$BRANCH-current.tar.gz.asc
-		svn rm certified-asterisk-$BRANCH-current.sha1
-		svn rm certified-asterisk-$BRANCH-current.md5
-		svn rm certified-asterisk-$BRANCH-current.sha256
-		svn rm certified-asterisk-$OLD_VERSION-patch.tar.gz
-		svn rm certified-asterisk-$OLD_VERSION-patch.tar.gz.asc
-		svn rm certified-asterisk-$BRANCH-current-patch.tar.gz
-		svn rm certified-asterisk-$BRANCH-current-patch.tar.gz.asc
-		svn rm certified-asterisk-$OLD_VERSION-summary.html
-		svn rm certified-asterisk-$OLD_VERSION-summary.txt
-		svn rm certified-asterisk-$BRANCH-current-summary.html
-		svn rm certified-asterisk-$BRANCH-current-summary.txt
+		find -maxdepth 1 -type l -name "certified-asterisk-$OLD_VERSION*" -exec svn rm {} \;
+		find -maxdepth 1 -type l -name "certified-asterisk-$BRANCH-current*" -exec svn rm {} \;
+
 		svn rm ChangeLog-$OLD_VERSION
 		svn rm README-$OLD_VERSION
 		svn rm ChangeLog-$BRANCH-current
@@ -166,44 +136,20 @@
 
 elif [ "$TYPE" = "RC" ]; then
 	if [ "$PROJECT" = "asterisk" ]; then
-		cd ~/downloads/asterisk-site
-
 		echo "Removing links to Asterisk $OLD_VERSION."
-		svn rm asterisk-$OLD_VERSION.tar.gz
-		svn rm asterisk-$OLD_VERSION.tar.gz.asc
-		svn rm asterisk-$OLD_VERSION.sha1
-		svn rm asterisk-$OLD_VERSION.sha256
-		svn rm asterisk-$OLD_VERSION.md5
-		svn rm asterisk-$OLD_VERSION-patch.sha1
-		svn rm asterisk-$OLD_VERSION-patch.sha256
-		svn rm asterisk-$OLD_VERSION-patch.md5
-		svn rm asterisk-$OLD_VERSION-patch.tar.gz
-		svn rm asterisk-$OLD_VERSION-patch.tar.gz.asc
-		svn rm README-$OLD_VERSION
+		find -maxdepth 1 -type l -name "asterisk-$OLD_VERSION*" -exec svn rm {} \;
+
 		svn rm ChangeLog-$OLD_VERSION
-		svn rm asterisk-$OLD_VERSION-summary.html
-		svn rm asterisk-$OLD_VERSION-summary.txt
+		svn rm README-$OLD_VERSION
 		echo "Committing to SVN."
 		sleep 3
 		svn commit -m "Removing links to Asterisk $OLD_VERSION."
 	elif [ "$PROJECT" = "certified-asterisk" ]; then
-		cd ~/downloads/certified-asterisk-site
-
 		echo "Removing links to Certified Asterisk $OLD_VERSION."
-		svn rm certified-asterisk-$OLD_VERSION.tar.gz
-		svn rm certified-asterisk-$OLD_VERSION.tar.gz.asc
-		svn rm certified-asterisk-$OLD_VERSION.sha1
-		svn rm certified-asterisk-$OLD_VERSION.sha256
-		svn rm certified-asterisk-$OLD_VERSION.md5
-		svn rm certified-asterisk-$OLD_VERSION-patch.sha1
-		svn rm certified-asterisk-$OLD_VERSION-patch.sha256
-		svn rm certified-asterisk-$OLD_VERSION-patch.md5
-		svn rm certified-asterisk-$OLD_VERSION-patch.tar.gz
-		svn rm certified-asterisk-$OLD_VERSION-patch.tar.gz.asc
-		svn rm certified-asterisk-$OLD_VERSION-summary.html
-		svn rm certified-asterisk-$OLD_VERSION-summary.txt
-		svn rm README-$OLD_VERSION
+		find -maxdepth 1 -type l -name "certified-asterisk-$OLD_VERSION*" -exec svn rm {} \;
+
 		svn rm ChangeLog-$OLD_VERSION
+		svn rm README-$OLD_VERSION
 		echo "Committing to SVN."
 		sleep 3
 		svn commit -m "Removing links to Certified Asterisk $OLD_VERSION."

-- 
To view, visit https://gerrit.asterisk.org/2223
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8cdad1f5fb193561dcbbedc783ef0d70143e4dd5
Gerrit-PatchSet: 1
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list