[PATCH] Add Spec file changelog entry to cedit.menu



Hi,

 the attached patch adds new entry to cedit.menu (invoked by F11 in edit
mode). The spec file changelog line is added to the edited file.

* Wed Dec 28 2005 My Name <my email com>

It's based on mc changelog entry.

Please consider checking it in. 

Radek


-- 
Radek Vokál <rvokal redhat com>
--- mc-4.6.1a/lib/cedit.menu.changelog	2005-05-27 05:35:12.000000000 +0200
+++ mc-4.6.1a/lib/cedit.menu	2006-01-30 10:46:11.000000000 +0100
@@ -449,6 +449,13 @@
         EMAIL="<$REPLYTO>"
         echo "$DATE  $AUTHOR  $EMAIL" >%b
 
+S       Insert `Spec-file Changelog' string
+        DATE="`date +\"%%a %%b %%e %%Y\"`"
+	MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`"
+	AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`"
+        EMAIL="<$REPLYTO>"
+        echo "* $DATE $AUTHOR $EMAIL" >%b
+
 s       Invoke `shell'
 	sh
 
@@ -466,3 +473,4 @@
 o       Open bash to next free console
         open -s -- /bin/bash
 #-------------------------- End of common section -----------------------------
+

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]