index 38375dd15c0440e2d08cb0e10348bff8ce9ffaa2..a1bfb486c7afa021f5d374de30d8e5cf8bcf4b23 100755 (executable)
PROGNAME=`/bin/basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
-REVISION=`echo '$Revision$' | sed -e 's/[^0-9.]//g'`
+REVISION="@NP_VERSION@"
. $PROGPATH/utils.sh
exit $STATE_OK
;;
--version)
- print_revision $PROGNAME $VERSION
+ print_revision $PROGNAME $REVISION
exit $STATE_OK
;;
-V)
- print_revision $PROGNAME $VERSION
+ print_revision $PROGNAME $REVISION
exit $STATE_OK
;;
--filename)
$CHMOD 600 $tempdiff
fi
-$DIFF $logfile $oldlog > $tempdiff
+$DIFF $logfile $oldlog | $GREP -v "^>" > $tempdiff
# Count the number of matching log entries we have
count=`$GREP -c "$query" $tempdiff`