Skip to content
Snippets Groups Projects
Commit d420fdf7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

parent 5a8254fa
No related branches found
No related tags found
No related merge requests found
...@@ -156,17 +156,18 @@ $1 !~ /:$/ { ...@@ -156,17 +156,18 @@ $1 !~ /:$/ {
dep=$0 dep=$0
} }
/.*/ { /.*/ {
if ( length(filenm) < 2 ) next
if ( filenm ~ /:.*:$/ ) next if ( filenm ~ /:.*:$/ ) next
split(dep, depends, " ") split(dep, depends, " ")
for(d in depends) { for(d in depends) {
dfile = depends[d] dfile = depends[d]
if ( length(dfile) < 2 ) continue
if ( dfile ~ /:/ ) continue if ( dfile ~ /:/ ) continue
if (( noslash == "yes") && (dfile ~ /^\// )) continue if (( noslash == "yes") && (dfile ~ /^\// )) continue
if ( length(dfile) < 2 ) continue
rec = filenm " " dfile rec = filenm " " dfile
print rec print rec
} }
} }
' noslash="$NOSLASH" $TMP.sed >> $TMP ' noslash="$NOSLASH" $TMP.sed >> $TMP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment