blob: 5e5068c493c5548ab37655bb24aa657337890189 (
plain) (
blame)
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
35
|
--- build.orig 2015-11-05 18:10:02 UTC
+++ build
@@ -22,7 +22,7 @@ if [ -d conf/unixconf ]; then
echo '#######################################################################'> conf/mkheader.in
echo '####### Makefile generated by build script ############################'>> conf/mkheader.in
echo VERSION = $version>> conf/mkheader.in
- echo DATE = `/bin/date`>> conf/mkheader.in
+ echo DATE = `/usr/bin/env LANG=C /bin/date`>> conf/mkheader.in
echo '#######################################################################'>> conf/mkheader.in
cat conf/unixconf/mkheader.0 >> conf/mkheader.in
else
@@ -51,7 +51,7 @@ if [ -f conf/util/configure ]; then
if [ `uname -s` = Darwin -a -d /opt/X11 ]; then
util/configure --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib -srcdir .
else
- util/configure -srcdir .
+ util/configure --prefix=${PREFIX} --x-includes=${LOCALBASE}/include --x-libraries=${LOCALBASE}/lib -srcdir .
fi
if [ ! -f ../src/include/config.h ] || \
@@ -102,8 +102,14 @@ if [ -f conf/mkheader ]; then
fi
echo Creating makefiles in the subdirectories...
$makeprog make
+ if [ $? -ne 0 ]; then
+ exit $?
+ fi
echo ...done
$makeprog all 2> ../../errs
+ if [ $? -ne 0 ]; then
+ exit $?
+ fi
echo done
echo Check the errs file for any problems.
echo To finish the installation, cd to src/bin, become root, and type
|