NetBSD/usr.sbin/amd/libamu/mkconf

30 lines
827 B
Plaintext
Raw Normal View History

# $NetBSD: mkconf,v 1.1.1.2 1999/09/04 22:25:00 christos Exp $
1997-07-25 01:19:53 +04:00
# mkconf
# Generate local configuration parameters for amd
#
cat << __EOF
/* Automatically generated file, do not edit! */
/* Define name and version of host machine (eg. solaris2.5.1) */
#define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`"
1997-07-25 01:19:53 +04:00
/* Define only name of host machine OS (eg. solaris2) */
#define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | cut -d. -f 1`"
1997-07-25 01:19:53 +04:00
/* Define only version of host machine (eg. 2.5.1) */
#define HOST_OS_VERSION "`uname -r`"
/* Define the header version of (linux) hosts (eg. 2.2.10) */
#define HOST_HEADER_VERSION "`uname -r`"
1997-07-25 01:19:53 +04:00
/* Define name of host */
#define HOST_NAME "`hostname`"
1997-07-25 01:19:53 +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