SVN: toys/stbr/cvslog.sh
shadzik
shadzik at pld-linux.org
Thu Feb 5 14:30:49 CET 2009
Author: shadzik
Date: Thu Feb 5 14:30:49 2009
New Revision: 10100
Modified:
toys/stbr/cvslog.sh
Log:
- add important tag information
Modified: toys/stbr/cvslog.sh
==============================================================================
--- toys/stbr/cvslog.sh (original)
+++ toys/stbr/cvslog.sh Thu Feb 5 14:30:49 2009
@@ -28,6 +28,13 @@
ADD_INFO=`grep -B 50 -A 2 Name: SPECS/$SPEC`
fi
+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)
+
+auto_tag=$(echo 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. I's safe to send upgrade."
+
function sendreq() {
/usr/sbin/sendmail -t <<EOF
From: $FROM <$FROM at IRC-bot>
@@ -45,6 +52,9 @@
Additional spec information:
$ADD_INFO
+Tag information:
+$TAG_INFO
+
Thank you.
Yours truly,
More information about the pld-cvs-commit
mailing list