|
Revision 1121, 0.7 kB
(checked in by arjanmol, 2 years ago)
|
Merged changed from new-canvas branch to trunk
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
# |
|---|
| 3 |
# This is a small utility that updates the ChangeLog based on the svn status. |
|---|
| 4 |
# |
|---|
| 5 |
# Vi is started and the change content is merged at the top of the file. |
|---|
| 6 |
# |
|---|
| 7 |
|
|---|
| 8 |
TMPFILE="/tmp/ChangeLogEntry_$$" |
|---|
| 9 |
|
|---|
| 10 |
{ |
|---|
| 11 |
echo "`date '+%Y-%m-%d'` `cat .developer`" |
|---|
| 12 |
echo "" |
|---|
| 13 |
|
|---|
| 14 |
svn status | sort | \ |
|---|
| 15 |
while read O FILE; do |
|---|
| 16 |
case "$O" in |
|---|
| 17 |
A) echo $FILE | if read H F; then |
|---|
| 18 |
test -z "$F" \ |
|---|
| 19 |
&& echo " * $FILE: New file." \ |
|---|
| 20 |
|| echo " * $F: Moved from " |
|---|
| 21 |
fi |
|---|
| 22 |
;; |
|---|
| 23 |
D) echo " * $FILE: Removed." |
|---|
| 24 |
;; |
|---|
| 25 |
M) echo " * $FILE:" |
|---|
| 26 |
;; |
|---|
| 27 |
?) # pass |
|---|
| 28 |
;; |
|---|
| 29 |
X) # external repository |
|---|
| 30 |
;; |
|---|
| 31 |
esac |
|---|
| 32 |
done |
|---|
| 33 |
echo "" |
|---|
| 34 |
} > $TMPFILE |
|---|
| 35 |
|
|---|
| 36 |
vi -c "r $TMPFILE" ChangeLog |
|---|