aboutsummaryrefslogtreecommitdiffstats
path: root/cad/jspice3/files/patch-build
blob: 23dd41e04f4bb9d07312e1ebd47a6b75362e5c38 (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  Tue May  1 13:37:12 2001
+++ build   Sat Nov 25 00:38:47 2006
@@ -22,7 +22,7 @@
         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
@@ -43,7 +43,7 @@
 
 if [ -f conf/util/configure ]; then
     cd conf
-    util/configure -srcdir .
+    util/configure -srcdir . --prefix=${PREFIX} -x-includes="${X11BASE}/include" -x-libraries="${X11BASE}/lib"
     if  [ ! -f ../src/include/config.h ] || \
             [ "`diff config.h ../src/include/config.h |head`" ]; then
         echo Installing config.h
@@ -92,8 +92,14 @@
         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