[EMAIL PROTECTED] writes:

> gstein      00/12/12 03:05:33
> 
>   Modified:    .        Makefile.in
>   Log:
>   auto-rebuild the exports file when a header changes
>   
>   Revision  Changes    Path
>   1.6       +14 -3     apr-util/Makefile.in
>   
>   Index: Makefile.in
>   ===================================================================
>   RCS file: /home/cvs/apr-util/Makefile.in,v
>   retrieving revision 1.5
>   retrieving revision 1.6
>   diff -u -u -r1.5 -r1.6
>   --- Makefile.in     2000/12/06 05:02:13     1.5
>   +++ Makefile.in     2000/12/12 11:05:32     1.6
...
>   @@ -33,7 +34,17 @@
>           echo $(LINK) $$objects ; \
>           $(LINK) -rpath $(libdir) $$objects
>    
>   -aprutil.exports:
>   +delete-exports:
>   +   @if test -f $(TARGET_EXPORTS); then \
>   +       headers="`find include/*.h -maxdepth 0 -newer $(TARGET_EXPORTS)`" ; 
> \
>   +       if test -n "$$headers"; then \
>   +           echo Found newer headers. Will rebuild $(TARGET_EXPORTS). ; \
>   +           echo $(RM) -f $(TARGET_EXPORTS) ; \
>   +           $(RM) -f $(TARGET_EXPORTS) ; \
>   +       fi \
>   +   fi

This breaks FreeBSD (3.4, at least), which doesn't support "find
-maxdepth".

If I understand correctly, "-maxdepth 0" isn't really necessary here
because there will be no directories fed to find so there can't be any
traversal (no chance to test at the moment though; maybe in an hour
when I get back from an errand).

-- 
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Reply via email to