darcs-hash:20000617010510-92525-88f272a24b36bb939eaca86d12dc0943863a48eb.gz
This commit is contained in:
krempp 2000-06-17 03:05:10 +02:00
parent 06a9f94fc8
commit 6e40e63241

View file

@ -16,10 +16,12 @@ echo "-------------------------------"
cd /etc cd /etc
/usr/bin/cvs -q -d /usr/cvs-rep status /etc/ /usr/scripts/ >$tempF3 /usr/bin/cvs -q -d /usr/cvs-rep status /etc/ /usr/scripts/ >$tempF3
#/usr/bin/cvs -q -d /usr/cvs-rep status /etc/ >$tempF3
grep "Status" $tempF3 |grep -v "Up-to-date" >$tempF2 grep "Status" $tempF3 |grep -v "Up-to-date" >$tempF2
if test -s $tempF2; then if test -s $tempF2; then
dirtyCVS="carrement" dirtyCVS="carrement"
# echo DIRTY
fi fi
echo -ne "\nDetails des Locally modified files\n" >>$tempF2 echo -ne "\nDetails des Locally modified files\n" >>$tempF2
@ -27,7 +29,7 @@ echo -ne "----------------------------------\n" >>$tempF2
grep -A8 "Locally" $tempF3 >> $tempF2 grep -A8 "Locally" $tempF3 >> $tempF2
if test -n "$1"; if test -n "$1";
then test -n $dirtyCVS && cat $tempF $tempF2 | sendmail "$1"; then test -n "$dirtyCVS" && cat $tempF $tempF2 | sendmail "$1";
else cat $tempF $tempF2; else cat $tempF $tempF2;
fi fi