svn path=/trunk/svn-tools/; revision=45287
This commit is contained in:
Raja R Harinath 2005-06-01 07:59:07 +00:00
Родитель cdb6e99c68
Коммит 88e08448b7
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,7 @@
2005-06-01 Raja R Harinath <rharinath@novell.com>
* svnci: Fix typo.
2004-11-19 Raja R Harinath <rharinath@novell.com> 2004-11-19 Raja R Harinath <rharinath@novell.com>
* svnci (MSG): Prefix each ChangeLog segment with the directory it * svnci (MSG): Prefix each ChangeLog segment with the directory it

4
svnci
Просмотреть файл

@ -9,7 +9,7 @@ MSG=`mktemp`
svn di $FILES | filterdiff -i'*ChangeLog' | svn di $FILES | filterdiff -i'*ChangeLog' |
sed -e '/^[^+]/d' -e 's,^[+],,' -e '/^[^+]/b' -e 's,^[+][+],In,' -e 's,/ChangeLog.*$,:,' -e 's,ChangeLog.*$,.:,' >> $MSG sed -e '/^[^+]/d' -e 's,^[+],,' -e '/^[^+]/b' -e 's,^[+][+],In,' -e 's,/ChangeLog.*$,:,' -e 's,ChangeLog.*$,.:,' >> $MSG
case `grep '^In' $MSG | wc -l` in case $(grep '^In' $MSG | wc -l) in
1) (echo 1d; echo w; echo q) | ed - $MSG ;; 1) (echo 1d; echo w; echo q) | ed - $MSG ;;
*) ;; *) ;;
esac esac
@ -31,7 +31,7 @@ do
case $RESPONSE in case $RESPONSE in
"Y" | "y" | "yes" | "Yes") "Y" | "y" | "yes" | "Yes")
echo "Comitting..." echo "Committing..."
svn ci -F $MSG $FILES svn ci -F $MSG $FILES
rm $MSG rm $MSG
exit 0 exit 0