Revision 15283,
1.1 KB
checked in by ghudson, 24 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r15282,
which included commits to RCS files with non-trunk default branches.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # build-info -- Generate header file containing build details |
---|
3 | # $Id: build-info,v 1.1.1.1 2000-11-12 06:11:33 ghudson Exp $ |
---|
4 | |
---|
5 | host_type="$1" |
---|
6 | rep_version="$2" |
---|
7 | repdir="$3" |
---|
8 | replispdir="$4" |
---|
9 | repexecdir="$5" |
---|
10 | repdocfile="$6" |
---|
11 | repcommonexecdir="$7" |
---|
12 | |
---|
13 | [ -n "$HOSTNAME" ] \ |
---|
14 | || HOSTNAME=`hostname` \ |
---|
15 | || HOSTNAME=unknown |
---|
16 | |
---|
17 | [ -n "$LOCALDOMAIN" ] \ |
---|
18 | || LOCALDOMAIN=`dnsdomainname` \ |
---|
19 | || LOCALDOMAIN=`domainname` \ |
---|
20 | || LOCALDOMAIN=unknown |
---|
21 | |
---|
22 | sys_name="$HOSTNAME.$LOCALDOMAIN" |
---|
23 | user_name="$LOGNAME" |
---|
24 | |
---|
25 | build_date="`date +'%a %b %e %Y'`" |
---|
26 | build_time="`date +'%T %Z'`" |
---|
27 | |
---|
28 | cat <<EOF |
---|
29 | /* build.h -- Definitions relating to the current build |
---|
30 | Automatically generated by build-info; DO NOT EDIT! */ |
---|
31 | |
---|
32 | #ifndef BUILD_H |
---|
33 | #define BUILD_H |
---|
34 | |
---|
35 | #define HOST_TYPE "$host_type" |
---|
36 | |
---|
37 | #define REP_VERSION "$rep_version" |
---|
38 | |
---|
39 | #define REP_DIRECTORY "$repdir" |
---|
40 | #define REP_LISP_DIRECTORY "$replispdir" |
---|
41 | #define REP_EXEC_DIRECTORY "$repexecdir" |
---|
42 | #define REP_COMMON_EXEC_DIRECTORY "$repcommonexecdir" |
---|
43 | #define REP_DOC_FILE "$repdocfile" |
---|
44 | |
---|
45 | #define BUILD_HOST "$sys_name" |
---|
46 | #define BUILD_USER "$user_name" |
---|
47 | |
---|
48 | #define BUILD_DATE "$build_date" |
---|
49 | #define BUILD_TIME "$build_time" |
---|
50 | |
---|
51 | #endif /* BUILD_H */ |
---|
52 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.