- adjusted generation of cvs-version.h to new file header format.

This commit is contained in:
Alexander Barton 2002-12-12 12:36:41 +00:00
parent ba767481d9
commit 427be23b6e
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
#
# $Id: Makefile.am,v 1.30 2002/11/30 17:39:56 alex Exp $
# $Id: Makefile.am,v 1.31 2002/12/12 12:36:41 alex Exp $
#
AUTOMAKE_OPTIONS = ../portab/ansi2knr
@ -64,8 +64,8 @@ ngircd.c: cvs-date cvs-version.h
cvs-date:
grep VERSION ../config.h | grep "CVS" \
&& echo "#define CVSDATE \"$$( grep "\$$Id" $(srcdir)/*.c $(srcdir)/*.h \
| awk "{ print \$$6 }" | sort | tail -n 1 )\"" > cvs-version.new \
&& echo "#define CVSDATE \"$$( grep "\$$Id" $(srcdir)/*.c \
| awk "{ print \$$9 }" | sort | tail -n 1 )\"" > cvs-version.new \
|| echo "" > cvs-version.new
diff cvs-version.h cvs-version.new || cp cvs-version.new cvs-version.h