httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/helpers mkdep.sh
Date Wed, 15 Nov 2000 20:00:37 GMT
gstein      00/11/15 12:00:37

  Modified:    src/lib/apr/helpers mkdep.sh
  Log:
  *) no reason to leave Makefile.bak turds since Makefile is a generated file
        (from Makefile.in)
  *) add some comments about what is happening
  
  Revision  Changes    Path
  1.2       +9 -2      apache-2.0/src/lib/apr/helpers/mkdep.sh
  
  Index: mkdep.sh
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/helpers/mkdep.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- mkdep.sh	2000/11/15 12:01:18	1.1
  +++ mkdep.sh	2000/11/15 20:00:37	1.2
  @@ -1,5 +1,12 @@
   #!/bin/sh
  -cp Makefile Makefile.bak \
  -    && sed -ne '1,/^# DO NOT REMOVE/p' Makefile > Makefile.new \
  +#
  +# 1) remove everything after the DO NOT REMOVE
  +# 2) generate the dependencies, adding them to the end of Makefile.new
  +# 3) move the Makefile.new back into place
  +#
  +# Note that we use && to ensure that Makefile is not changed if an error
  +# occurs during the process
  +#
  +sed -ne '1,/^# DO NOT REMOVE/p' Makefile > Makefile.new \
       && gcc -MM  $* >> Makefile.new \
       && mv Makefile.new Makefile
  
  
  

Mime
View raw message