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

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
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
17sys_name="$HOSTNAME"
18user_name="$LOGNAME"
19
20build_date="`date +'%a %b %e %Y'`"
21build_time="`date +'%T %Z'`"
22
23cat <<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 */
47EOF
Note: See TracBrowser for help on using the repository browser.