]> Zhao Yanbai Git Server - minix.git/commitdiff
include svn revision number in <minix/sys_config.h>, printed by kernel
authorBen Gras <ben@minix3.org>
Wed, 21 Mar 2007 13:35:06 +0000 (13:35 +0000)
committerBen Gras <ben@minix3.org>
Wed, 21 Mar 2007 13:35:06 +0000 (13:35 +0000)
at startup, to easily identify releases.

kernel/main.c
tools/release.sh

index 1e93aefcbba3b8c8fe49aa29dfec441e57ffeb18..0579b12636499884563f5ec05369cf53032ed7a3 100755 (executable)
@@ -179,6 +179,9 @@ PRIVATE void announce(void)
 {
   /* Display the MINIX startup banner. */
   kprintf("\nMINIX %s.%s. "
+#ifdef SVN_REVISION
+       "(" SVN_REVISION ")\n"
+#endif
       "Copyright 2006, Vrije Universiteit, Amsterdam, The Netherlands\n",
       OS_RELEASE, OS_VERSION);
 }
index d3fdd210684f93103da14d627b2313f82bfd88f9..96f07c836a74e2f5ae0813f2efc1f9b9d3c0166f 100755 (executable)
@@ -284,6 +284,13 @@ then
        echo "Doing export of revision $REVISION from $REPO."
        ( cd $RELEASEDIR/usr && svn export -r$REVISION $REPO )
        REVTAG=r$REVISION
+       echo "
+
+/* Added by release script  */
+#ifndef SVN_REVISION
+#define SVN_REVISION \"$REVISION\"
+#endif" >>$RELEASEDIR/usr/src/include/minix/sys_config.h
+
 else
        ( cd .. && make depend && make clean )
        srcdir=/usr/$SRC