forked from SawfishWM/sawfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-info
34 lines (27 loc) · 785 Bytes
/
build-info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# build-info -- Generate header file containing build details
# $Id: build-info,v 1.5 2000/11/16 21:58:27 jsh Exp $
version="$1"
sawfishdir="$2"
lispdir="$3"
sawfishexecdir="$4"
localedir="$5"
[ -n "$HOSTNAME" ] \
|| HOSTNAME=`hostname` \
|| HOSTNAME=unknown
[ -n "$LOCALDOMAIN" ] \
|| LOCALDOMAIN=`dnsdomainname` \
|| LOCALDOMAIN=`domainname` \
|| LOCALDOMAIN=unknown
cat >src/build.h <<EOF
/* build.h -- Definitions relating to the current build
Automatically generated by build-info; DO NOT EDIT! */
#ifndef BUILD_H
#define BUILD_H
#define SAWFISH_VERSION "$version"
#define SAWFISH_DIR "$sawfishdir"
#define SAWFISH_LISPDIR "$lispdir"
#define SAWFISH_EXECDIR "$sawfishexecdir"
#define SAWFISH_LOCALEDIR "$localedir"
#endif /* BUILD_H */
EOF