blob: 1143bbe753c4a968997786fdbfd1f8585c4429f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/bin/sh
TMPFILE="/tmp/.eci.$RANDOM"
touch $TMPFILE
chmod 600 $TMPFILE
echo "
--This line and thoses under will be ignored--
$(svn st)
$(svn diff)" >> $TMPFILE
SUM_ORI=$(cksum $TMPFILE | awk '{print $1}')
$EDITOR $TMPFILE
SUM_NEW=$(cksum $TMPFILE | awk '{print $1}')
if [[ $SUM_ORI -eq $SUN_NEW ]] ;
then
echo "Enter something !"
exit -1
fi
DELCOMMENTFROM=$(grep -n -- '--This line and thoses under will be ignored--' $TMPFILE | cut -d ':' -f 1)
head -n $(($DELCOMMENTFROM-1)) $TMPFILE > $TMPFILE.send
cd $HOME/dev/espik
echo "
$USER from $(hostname -f) : $(date "+%d/%m/%y %X")
$(cat $TMPFILE.send)
File changes :
$(svn st | grep -v '^?')" >> $HOME/dev/espik/ChangeLog
svn ci -m "$(cat $TMPFILE.send)"
rm -f $TMPFILE $TMPFILE.send
|