move version definition into extra file

This commit is contained in:
tg 2006-08-01 12:22:26 +00:00
parent 3a9ac3916a
commit 711496f6fb
3 changed files with 7 additions and 4 deletions

4
main.c
View File

@ -6,9 +6,7 @@
#define EXTERN /* define EXTERNs in sh.h */
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.42 2006/07/23 14:35:44 tg Exp $");
#define MKSH_VERSION "@(#)MIRBSD KSH R27 2006/07/23"
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.43 2006/08/01 12:22:26 tg Exp $");
extern char **environ;

4
sh.h
View File

@ -8,7 +8,7 @@
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.27 2006/06/21 19:35:38 tg Exp $"
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.28 2006/08/01 12:22:26 tg Exp $"
#include <sys/param.h>
@ -1269,6 +1269,8 @@ EXTERN struct termios tty_state; /* saved tty state */
extern void tty_init(int);
extern void tty_close(void);
#include "version.h"
/* be sure not to interfere with anyone else's idea about EXTERN */
#ifdef EXTERN_DEFINED
# undef EXTERN_DEFINED

3
version.h Normal file
View File

@ -0,0 +1,3 @@
/* $MirOS: src/bin/mksh/version.h,v 1.1 2006/08/01 12:22:26 tg Exp $ */
EXTERN const char MKSH_VERSION[] I__("@(#)MIRBSD KSH R27 2006/07/23");