include svn revision number in <minix/sys_config.h>, printed by kernel

at startup, to easily identify releases.
This commit is contained in:
Ben Gras 2007-03-21 13:35:06 +00:00
parent 70ab580d6b
commit 31c62a7347
2 changed files with 10 additions and 0 deletions

View file

@ -179,6 +179,9 @@ PRIVATE void announce(void)
{ {
/* Display the MINIX startup banner. */ /* Display the MINIX startup banner. */
kprintf("\nMINIX %s.%s. " kprintf("\nMINIX %s.%s. "
#ifdef SVN_REVISION
"(" SVN_REVISION ")\n"
#endif
"Copyright 2006, Vrije Universiteit, Amsterdam, The Netherlands\n", "Copyright 2006, Vrije Universiteit, Amsterdam, The Netherlands\n",
OS_RELEASE, OS_VERSION); OS_RELEASE, OS_VERSION);
} }

View file

@ -284,6 +284,13 @@ then
echo "Doing export of revision $REVISION from $REPO." echo "Doing export of revision $REVISION from $REPO."
( cd $RELEASEDIR/usr && svn export -r$REVISION $REPO ) ( cd $RELEASEDIR/usr && svn export -r$REVISION $REPO )
REVTAG=r$REVISION 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 else
( cd .. && make depend && make clean ) ( cd .. && make depend && make clean )
srcdir=/usr/$SRC srcdir=/usr/$SRC