equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 echo >> "$2" |
3 case "${EDITOR}" in |
4 cat "$1" >> "$2" |
4 "") |
5 rm "$1" |
5 EDITOR="vi" |
6 $EDITOR "$2" |
6 ;; |
|
7 emacs) |
|
8 EDITOR="$EDITOR -nw" |
|
9 ;; |
|
10 gvim|vim) |
|
11 EDITOR="$EDITOR -f -o" |
|
12 ;; |
|
13 esac |
|
14 |
|
15 SVNTMP="$1" |
|
16 cleanup_exit() { |
|
17 rm -rf "$SVNTMP" |
|
18 } |
|
19 |
|
20 # Remove temporary files even if we get interrupted |
|
21 trap "cleanup_exit" 0 # normal exit |
|
22 trap "exit 255" HUP INT QUIT ABRT TERM |
|
23 |
|
24 #echo >> "$2" |
|
25 #cat "$1" >> "$2" |
|
26 #rm "$1" |
|
27 $EDITOR "$2" "$1" |