]> git.sur5r.net Git - openldap/blobdiff - build/mkdep
before including <pth.h>:
[openldap] / build / mkdep
index 9c35e59dadf977b0480af11c3b61baba993cbc86..d2e316865ee29d9373d15f787c4baf30b201fb46 100755 (executable)
@@ -1,5 +1,6 @@
 #! /bin/sh -
-## Copyright 1998,1999 The OpenLDAP Foundation
+# $OpenLDAP$
+## Copyright 1998-2000 The OpenLDAP Foundation
 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
 ## of this package for details.
 #
@@ -156,17 +157,18 @@ $1 !~ /:$/ {
        dep=$0
 }
 /.*/ {
+       if ( length(filenm) < 2 ) next
        if ( filenm ~ /:.*:$/ ) next
        split(dep, depends, " ")
        for(d in depends) {
                dfile = depends[d]
+               if ( length(dfile) < 2 ) continue
                if ( dfile ~ /:/ ) continue
                if (( noslash == "yes") && (dfile ~ /^\// )) continue
-               if ( length(dfile) < 2 ) continue
                rec = filenm " " dfile
                print rec
        }
-    }
+}
 ' noslash="$NOSLASH" $TMP.sed >> $TMP