Commit d420fdf7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

If filenm is "" or ":", skip it

parent 5a8254fa
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment