When editing ChangeLog position the cursor to the new tag and redraw screen so that...
authorZdeněk Šustr <sustr4@cesnet.cz>
Fri, 18 Mar 2011 11:06:22 +0000 (11:06 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Fri, 18 Mar 2011 11:06:22 +0000 (11:06 +0000)
org.glite.lb/etics-tag.pl

index 7c17732..9c05576 100755 (executable)
@@ -230,12 +230,7 @@ usage: $0 [-i maj|min|rev|age|none|<sigle_word_age>] [-g] [-c <current configura
                        if ($increment eq "a") {system("echo \"- Module rebuilt\" >> $tmpChangeLog"); system("echo \"\" >> $tmpChangeLog");}
                        else { system("cvs log -S -N -r" . "$current_tag" . ":: $module | egrep -v \"^locks:|^access list:|^keyword substitution:|^total revisions:|^branch:|^description:|^head:|^RCS file:|^date:|^---|^===|^revision \" >> $tmpChangeLog"); }
                                
-                       $lastline=`cat $tmpChangeLog | wc -l`;
-                       chomp($lastline);
-
-                       printf("vim +$lastline +$editline $tmpChangeLog\n");
-
-                       $ChangeLogRet=system("vim +$editline $tmpChangeLog");
+                       $ChangeLogRet=system("vim +$editline -c \"norm z.\" $tmpChangeLog");
                }
                printf("Modified ChangeLog ready, ret code: $ChangeLogRet\n");