source: trunk/third/librep/build-info @ 15283

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
5host_type="$1"
6rep_version="$2"
7repdir="$3"
8replispdir="$4"
9repexecdir="$5"
10repdocfile="$6"
11repcommonexecdir="$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
22sys_name="$HOSTNAME.$LOCALDOMAIN"
23user_name="$LOGNAME"
24
25build_date="`date +'%a %b %e %Y'`"
26build_time="`date +'%T %Z'`"
27
28cat <<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 */
52EOF
Note: See TracBrowser for help on using the repository browser.