2000-11-20 04:56:13 +03:00
|
|
|
# $NetBSD: mkconf,v 1.2 2000/11/20 01:56:13 wiz Exp $
|
2000-11-20 03:16:18 +03:00
|
|
|
#
|
1997-07-25 01:19:53 +04:00
|
|
|
# mkconf
|
|
|
|
# Generate local configuration parameters for amd
|
|
|
|
#
|
|
|
|
cat << __EOF
|
|
|
|
|
1999-09-05 02:24:52 +04:00
|
|
|
/* Automatically generated file, do not edit! */
|
|
|
|
|
|
|
|
/* Define name and version of host machine (eg. solaris2.5.1) */
|
2000-11-20 04:56:13 +03:00
|
|
|
#define HOST_OS "netbsd$1"
|
1997-07-25 01:19:53 +04:00
|
|
|
|
1999-09-05 02:24:52 +04:00
|
|
|
/* Define only name of host machine OS (eg. solaris2) */
|
2000-11-20 04:56:13 +03:00
|
|
|
#define HOST_OS_NAME "netbsd`echo $1 | cut -d. -f 1`"
|
1997-07-25 01:19:53 +04:00
|
|
|
|
|
|
|
/* Define only version of host machine (eg. 2.5.1) */
|
2000-11-20 04:56:13 +03:00
|
|
|
#define HOST_OS_VERSION "$1"
|
1997-07-25 01:19:53 +04:00
|
|
|
|
1999-09-05 02:24:52 +04:00
|
|
|
/* Define the header version of (linux) hosts (eg. 2.2.10) */
|
2000-11-20 04:56:13 +03:00
|
|
|
#define HOST_HEADER_VERSION "$1"
|
1997-07-25 01:19:53 +04:00
|
|
|
|
1999-09-05 02:24:52 +04:00
|
|
|
/* Define name of host */
|
|
|
|
#define HOST_NAME "`hostname`"
|
1997-07-25 01:19:53 +04:00
|
|
|
|
1999-09-05 02:24:52 +04:00
|
|
|
/* Define user name */
|
|
|
|
#define USER_NAME "`whoami`"
|
|
|
|
|
|
|
|
/* Define configuration date */
|
|
|
|
#define CONFIG_DATE "`date`"
|
1997-07-25 01:19:53 +04:00
|
|
|
__EOF
|