[Nut-upsdev] recent and planned changes

Peter Selinger selinger at mathstat.dal.ca
Mon Sep 19 16:14:32 UTC 2005


Arnaud Quette wrote:
> 
> 2005/9/17, Peter Selinger <selinger at mathstat.dal.ca>:
> > 
> > The logical answer to this is: dependencies don't need to be generated
> > by the user at compile time. They need to be generated by the
> > maintainer at release time (and occasionally by developers in CVS).
> > Assuming that the maintainer has access to "gcc", there is no
> > portability cost to generating the dependencies this way.
> 
> it wasn't acceptable if being user linked (ie called by make clean).
> it's more acceptable as a maintainer feature . But I still want some test
> to make a clear error msg if the compiler is not gcc. Thanks to complete it.

Done, no problem. Here is the change:

--- drivers/gendb       17 Sep 2005 00:29:31 -0000      1.1.1.1.8.1.2.5
+++ drivers/gendb       19 Sep 2005 16:09:41 -0000
@@ -10,6 +10,12 @@

 MFDB=Makefile.drvbuild

+which gcc >& /dev/null
+if [ $? != 0 ]; then
+    echo "$0: gcc not found. Bailing out (and keeping $MFDB intact)."
+    exit 1
+fi
+
 rm -f $MFDB

 cat > $MFDB << EOF
@@ -51,3 +57,6 @@
 do
        gcc -I../include -MG -MM "$i" >> $MFDB
 done
+
+exit 0
+



More information about the Nut-upsdev mailing list