Revision 17362,
1019 bytes
checked in by ghudson, 23 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r17361,
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.2 2002-03-20 04:53:06 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 | sys_name="$HOSTNAME" |
---|
18 | user_name="$LOGNAME" |
---|
19 | |
---|
20 | build_date="`date +'%a %b %e %Y'`" |
---|
21 | build_time="`date +'%T %Z'`" |
---|
22 | |
---|
23 | cat <<EOF |
---|
24 | /* build.h -- Definitions relating to the current build |
---|
25 | Automatically generated by build-info; DO NOT EDIT! */ |
---|
26 | |
---|
27 | #ifndef BUILD_H |
---|
28 | #define BUILD_H |
---|
29 | |
---|
30 | #define HOST_TYPE "$host_type" |
---|
31 | |
---|
32 | #define REP_VERSION "$rep_version" |
---|
33 | |
---|
34 | #define REP_DIRECTORY "$repdir" |
---|
35 | #define REP_LISP_DIRECTORY "$replispdir" |
---|
36 | #define REP_EXEC_DIRECTORY "$repexecdir" |
---|
37 | #define REP_COMMON_EXEC_DIRECTORY "$repcommonexecdir" |
---|
38 | #define REP_DOC_FILE "$repdocfile" |
---|
39 | |
---|
40 | #define BUILD_HOST "$sys_name" |
---|
41 | #define BUILD_USER "$user_name" |
---|
42 | |
---|
43 | #define BUILD_DATE "$build_date" |
---|
44 | #define BUILD_TIME "$build_time" |
---|
45 | |
---|
46 | #endif /* BUILD_H */ |
---|
47 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.