[asterisk-commits] releaser.sh: Fix current version links for libpri and libss7 (repotools[master])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 30 10:43:02 CST 2017
Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/4842 )
Change subject: releaser.sh: Fix current version links for libpri and libss7
......................................................................
releaser.sh: Fix current version links for libpri and libss7
* Fixed some whitespace indention.
Change-Id: If136ff031fdfc84c734ef277a348c6b21d42b373
---
M releaser.sh
1 file changed, 44 insertions(+), 24 deletions(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Verified
diff --git a/releaser.sh b/releaser.sh
index 6d8e46f..0c3130f 100755
--- a/releaser.sh
+++ b/releaser.sh
@@ -12,6 +12,10 @@
echo " releaser.sh 1.4.26 1.4.25.1 1.4 release asterisk"
echo " or"
echo " releaser.sh 1.4.26-rc2 1.4.26-rc1 1.4 RC asterisk-addons"
+ echo " or"
+ echo " releaser.sh 1.6.0 1.5.0 dont_care release libpri"
+ echo " or"
+ echo " releaser.sh 2.0.0 2.1.0 2.0 release libss7"
echo " the format is"
echo " releaser.sh NEW_VERSION OLD_VERSION BRANCH TYPE PROJECT"
exit;
@@ -24,34 +28,34 @@
fi
commit_changes () {
- echo "Going to commit - \"$2 links for $1 $3\". Press any key to continue."
- read
- svn commit -m "$2 links for $1-$3."
- echo "Committed - $2 links for $1 $3."
+ echo "Going to commit - \"$2 links for $1 $3\". Press any key to continue."
+ read
+ svn commit -m "$2 links for $1-$3."
+ echo "Committed - $2 links for $1 $3."
}
remove_links () {
- echo "Removing links to $1-$2."
- find -maxdepth 1 -type l -name "$1-$2*" -exec svn rm {} \;
+ echo "Removing links to $1-$2."
+ find -maxdepth 1 -type l -name "$1-$2*" -exec svn rm {} \;
- svn rm ChangeLog-$2*
- svn rm README-$2*
+ svn rm ChangeLog-$2*
+ svn rm README-$2*
}
add_links () {
- echo "Adding current links for $1 $2."
- ln -s releases/$1-$2.tar.gz ./$1-$3-current.tar.gz
- ln -s releases/$1-$2.tar.gz.asc ./$1-$3-current.tar.gz.asc
- ln -s releases/$1-$2.sha1 ./$1-$3-current.sha1
- ln -s releases/$1-$2.sha256 ./$1-$3-current.sha256
- ln -s releases/$1-$2.md5 ./$1-$3-current.md5
- ln -s releases/$1-$2-patch.tar.gz ./$1-$3-current-patch.tar.gz
- ln -s releases/$1-$2-patch.tar.gz.asc ./$1-$3-current-patch.tar.gz.asc
- ln -s releases/README-$2 ./README-$3-current
- ln -s releases/ChangeLog-$2 ./ChangeLog-$3-current
- ln -s releases/$1-$2-summary.html ./$1-$3-current-summary.html
- ln -s releases/$1-$2-summary.txt ./$1-$3-current-summary.txt
- svn add *$3-current*
+ echo "Adding current links for $1 $2."
+ ln -s releases/$1-$2.tar.gz ./$1-$3.tar.gz
+ ln -s releases/$1-$2.tar.gz.asc ./$1-$3.tar.gz.asc
+ ln -s releases/$1-$2.sha1 ./$1-$3.sha1
+ ln -s releases/$1-$2.sha256 ./$1-$3.sha256
+ ln -s releases/$1-$2.md5 ./$1-$3.md5
+ ln -s releases/$1-$2-patch.tar.gz ./$1-$3-patch.tar.gz
+ ln -s releases/$1-$2-patch.tar.gz.asc ./$1-$3-patch.tar.gz.asc
+ ln -s releases/README-$2 ./README-$3
+ ln -s releases/ChangeLog-$2 ./ChangeLog-$3
+ ln -s releases/$1-$2-summary.html ./$1-$3-summary.html
+ ln -s releases/$1-$2-summary.txt ./$1-$3-summary.txt
+ svn add *$3*
}
if [ "$TYPE" = "release" ]; then
@@ -60,7 +64,7 @@
remove_links $PROJECT $BRANCH-current
commit_changes $PROJECT "remove" "$OLD_VERSION and $BRANCH-current"
- add_links $PROJECT $NEW_VERSION $BRANCH
+ add_links $PROJECT $NEW_VERSION $BRANCH-current
commit_changes $PROJECT "add" "$NEW_VERSION and $BRANCH-current"
elif [ "$PROJECT" = "certified-asterisk" ]; then
@@ -68,17 +72,33 @@
remove_links asterisk certified-$BRANCH-current
commit_changes asterisk "remove" "certified-$OLD_VERSION and certified-$BRANCH-current"
- add_links asterisk certified-$NEW_VERSION certified-$BRANCH
+ add_links asterisk certified-$NEW_VERSION certified-$BRANCH-current
commit_changes asterisk "add" "certified-$NEW_VERSION and certified-$BRANCH-current"
elif [ "$PROJECT" = "libpri" ]; then
remove_links $PROJECT $OLD_VERSION
+ #remove_links $PROJECT $BRANCH-current
remove_links $PROJECT current
+ #commit_changes $PROJECT "remove" "$OLD_VERSION and $BRANCH-current"
commit_changes "" "remove" "$PROJECT-$OLD_VERSION and $PROJECT-current"
- add_links $PROJECT $NEW_VERSION $BRANCH
+ #add_links $PROJECT $NEW_VERSION $BRANCH-current
+ add_links $PROJECT $NEW_VERSION current
+ #commit_changes $PROJECT "add" "$NEW_VERSION and $BRANCH-current"
commit_changes "" "add" "$PROJECT-$NEW_VERSION and $PROJECT-current"
+ elif [ "$PROJECT" = "libss7" ]; then
+ remove_links $PROJECT $OLD_VERSION
+ remove_links $PROJECT $BRANCH-current
+ #remove_links $PROJECT current
+ commit_changes $PROJECT "remove" "$OLD_VERSION and $BRANCH-current"
+ #commit_changes "" "remove" "$PROJECT-$OLD_VERSION and $PROJECT-current"
+
+ add_links $PROJECT $NEW_VERSION $BRANCH-current
+ #add_links $PROJECT $NEW_VERSION current
+ commit_changes $PROJECT "add" "$NEW_VERSION and $BRANCH-current"
+ #commit_changes "" "add" "$PROJECT-$NEW_VERSION and $PROJECT-current"
+
elif [ "$PROJECT" = "asterisk-addons" ]; then
cd ~/downloads/asterisk-site
--
To view, visit https://gerrit.asterisk.org/4842
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If136ff031fdfc84c734ef277a348c6b21d42b373
Gerrit-PatchSet: 1
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
More information about the asterisk-commits
mailing list