diff options
author | abs <abs@pkgsrc.org> | 2007-12-20 18:51:18 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2007-12-20 18:51:18 +0000 |
commit | dc2c1fec5996039e4ca7ea5107905518de859bae (patch) | |
tree | 50d8d592f5c8a5f24c0ffe2a5d8900bff0f26152 /mk | |
parent | a2b389bb723b77b278fccf541a515b929024e623 (diff) | |
download | pkgsrc-dc2c1fec5996039e4ca7ea5107905518de859bae.tar.gz |
remember to close() the "ls -l " exprs, lest we run out of file descriptors
Diffstat (limited to 'mk')
-rw-r--r-- | mk/configure/cmake-rewrite.awk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/configure/cmake-rewrite.awk b/mk/configure/cmake-rewrite.awk index 87132479eef..d74b35ad38f 100644 --- a/mk/configure/cmake-rewrite.awk +++ b/mk/configure/cmake-rewrite.awk @@ -1,4 +1,4 @@ -# $NetBSD: cmake-rewrite.awk,v 1.1 2007/12/12 01:00:38 markd Exp $ +# $NetBSD: cmake-rewrite.awk,v 1.2 2007/12/20 18:51:18 abs Exp $ # # cleanup references to libraries in the buildlink tree in files # written by cmake's export_library_dependencies() function @@ -17,6 +17,7 @@ BEGIN { buildlink_dir = ARGV[1]; delete ARGV[1] } d=substr(d,RLENGTH+2,length(d)) if (dep ~ "^" buildlink_dir) { "ls -l " dep | getline ls_out + close ("ls -l " dep) match(ls_out,"-> ") if (RSTART > 0) { dep=substr(ls_out,RSTART+RLENGTH,length(ls_out)) |