]> git.sur5r.net Git - openldap/commitdiff
If filenm is "" or ":", skip it
authorKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 1999 18:23:58 +0000 (18:23 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 1999 18:23:58 +0000 (18:23 +0000)
build/mkdep

index 9c35e59dadf977b0480af11c3b61baba993cbc86..83e40c8c82ec57290dccc949928f6a4d541c0e58 100755 (executable)
@@ -156,17 +156,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