From: Ben Gras Date: Wed, 21 Mar 2007 13:35:06 +0000 (+0000) Subject: include svn revision number in , printed by kernel X-Git-Tag: v3.1.3~37 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=31c62a7347549e0cb23e81afa39e8278e9622b8c;p=minix.git include svn revision number in , printed by kernel at startup, to easily identify releases. --- diff --git a/kernel/main.c b/kernel/main.c index 1e93aefcb..0579b1263 100755 --- a/kernel/main.c +++ b/kernel/main.c @@ -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); } diff --git a/tools/release.sh b/tools/release.sh index d3fdd2106..96f07c836 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -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