SVN: toys/stbr/cvslog.sh
shadzik
shadzik at pld-linux.org
Fri Feb 6 00:30:59 CET 2009
Author: shadzik
Date: Fri Feb 6 00:30:59 2009
New Revision: 10107
Modified:
toys/stbr/cvslog.sh
Log:
- enhance tag info functionality, warn about incomplete releases
Modified: toys/stbr/cvslog.sh
==============================================================================
--- toys/stbr/cvslog.sh (original)
+++ toys/stbr/cvslog.sh Fri Feb 6 00:30:59 2009
@@ -30,10 +30,14 @@
spec_name=$(awk '/Name:/ {print $2}' SPECS/$SPEC)
spec_ver=$(awk '/Version:/ {print $2}' SPECS/$SPEC |tr . _)
-spec_rel=$(awk '/Release:/ {print $2}' SPECS/$SPEC)
+spec_rel=$(awk '/Release:/ {print $2}' SPECS/$SPEC |grep -vE "(\.)")
+if [ "x$spec_rel" != "x" ]; then
auto_tag="auto-$DIST-$spec_name-$spec_ver-$spec_rel"
cvs -d $CVSROOT status -v SPECS/$SPEC |grep $auto_tag >/dev/null && TAG_INFO="Found $auto_tag tag. You need to increase spec release to successfully send upgrade." || TAG_INFO="No $auto_tag tag found. It's safe to send upgrade."
+else
+ TAG_INFO="Release seems not to be integer. Please correct this before sending upgrade."
+fi
function sendreq() {
/usr/sbin/sendmail -t <<EOF
More information about the pld-cvs-commit
mailing list