Up: editinfo   [Contents][Index]


C.6.1 editinfo µ­½ÒÎã

¼¡¤Ë¡¢¤Á¤ç¤Ã¤È¥¢¥Û¤¯¤µ¤¤ editinfo ¤Î»ÈÍÑÎã¤ò¡¢ Âбþ¤¹¤ë rcsinfo¡¢¥í¥°¡¦¥á¥Ã¥»¡¼¥¸¤Î¿÷·¿¡¢ ¥¨¥Ç¥£¥¿¡¦¥¹¥¯¥ê¥×¥È¤ÈÊ»¤ï¤»¤Æ¾Ò²ð¤·¤Þ¤¹¡£ ¤Þ¤º¥í¥°¡¦¥á¥Ã¥»¡¼¥¸¤Î¿÷·¿¤Ç¤¹¤¬¡¢ ºÇ½é¤Î¹Ô¤Ëɬ¤º¥Ð¥°ÈÖ¹æ¤òµ­Ï¿¤¹¤ë¤è¤¦¤ËÂ¥¤·¡¢ »Ä¤ê¤Ï¼«Í³¤Ëµ­½Ò¤·¤Æ¤â¤é¤¤¤Þ¤¹¡£ ¤³¤Î¿÷·¿¤Ï /usr/cvssupport/tc.template ¤ËÃÖ¤¯¤³¤È¤Ë¤·¤Þ¤¹¡£

BugId:

¥í¥°¡¦¥á¥Ã¥»¡¼¥¸¤òÊÔ½¸¤¹¤ë¤¿¤á¡¢ ¼¡¤Î¥¹¥¯¥ê¥×¥È /usr/cvssupport/bugid.edit ¤ò»ÈÍѤ·¤Þ¤¹¡£

#!/bin/sh
#
#       bugid.edit filename
#
#  Call $EDITOR on FILENAME, and verify that the
#  resulting file contains a valid bugid on the first
#  line.
if [ "x$EDITOR" = "x" ]; then EDITOR=vi; fi
if [ "x$CVSEDITOR" = "x" ]; then CVSEDITOR=$EDITOR; fi
$CVSEDITOR $1
until head -1|grep '^BugId:[ ]*[0-9][0-9]*$' < $1
do  echo -n  "No BugId found.  Edit again? ([y]/n)"
    read ans
    case ${ans} in
        n*) exit 1;;
    esac
    $CVSEDITOR $1
done

¥Õ¥¡¥¤¥ë editinfo ¤Ë¤Ï¼¡¤Î¹Ô¤òµ­½Ò¤·¤Þ¤¹:

^tc     /usr/cvssupport/bugid.edit

¥Õ¥¡¥¤¥ë rcsinfo ¤Ë¤Ï¼¡¤Î¹Ô¤òµ­½Ò¤·¤Þ¤¹:

^tc     /usr/cvssupport/tc.template