summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-09-08 15:49:59 +0200
committerJustin Davis <jrcd83@gmail.com>2011-09-08 15:49:59 +0200
commit2790654fc3551a2419c30a7237b94c2bfe83d726 (patch)
tree277763214936837923fc24a39e97fedbe22583cf /bin
parentf1f8b968d0101237c24bc9a91c67f0f98b112aec (diff)
downloadgenpkg-2790654fc3551a2419c30a7237b94c2bfe83d726.tar.gz
genpkg-2790654fc3551a2419c30a7237b94c2bfe83d726.tar.xz
Use the value of the PACKAGER env. var. for the value of "packager".
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pbjparse.awk6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/pbjparse.awk b/bin/pbjparse.awk
index 8d9c3b5..6cdf5e6 100755
--- a/bin/pbjparse.awk
+++ b/bin/pbjparse.awk
@@ -32,7 +32,11 @@ END {
print "" | tcmd
}
- if (!seenpkgr) print "packager\n" packager "\n\n" | tcmd
+ if (!seenpkgr) {
+ pkger = ENVIRON["PACKAGER"]
+ if (pkger == "") pkger = "Anonymous"
+ print "packager\n" pkger | tcmd
+ }
}
function parsepbj ( cmd) # cmd is a "local" var