summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/ptxd_lib_dgen.awk5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 72a3ea857..f658a64d7 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -45,12 +45,15 @@ FNR == 1 {
# remember the current opened file
old_filename = FILENAME;
+ lineno = 0;
# will be set later, if makefile belongs to a pkg
is_pkg = "";
}
-
+/^/ {
+ lineno += 1;
+}
#
# skip comments and empty lines