apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From orlikow...@apache.org
Subject cvs commit: apr/build mkdep.sh
Date Fri, 11 May 2001 19:46:26 GMT
orlikowski    01/05/11 12:46:26

  Modified:    build    mkdep.sh
  Log:
  Hum. On systems that don't necessarily have gcc, this is a breakage.
  However, this doesn't seem quite clean. Anyone have any better ideas?
  
  Revision  Changes    Path
  1.2       +5 -1      apr/build/mkdep.sh
  
  Index: mkdep.sh
  ===================================================================
  RCS file: /home/cvs/apr/build/mkdep.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- mkdep.sh	2001/02/18 13:36:15	1.1
  +++ mkdep.sh	2001/05/11 19:46:22	1.2
  @@ -7,6 +7,10 @@
   # Note that we use && to ensure that Makefile is not changed if an error
   # occurs during the process
   #
  +if [ -z $CC ]; then
  +   CC=cc
  +fi
  +
   sed -ne '1,/^# DO NOT REMOVE/p' Makefile > Makefile.new \
  -    && gcc -MM  $* | sed -e "s/\.o:/\.lo:/" >> Makefile.new \
  +    && $CC -MM  $* | sed -e "s/\.o:/\.lo:/" >> Makefile.new \
       && mv Makefile.new Makefile
  
  
  

Mime
View raw message