diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-05-25 18:58:16 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-05-25 18:58:16 +0200 |
commit | ee23e98d42521ac33dcc6840f6db07bf3ba8ef3b (patch) | |
tree | 0d263a4c130febbe79c4e8d1031ac164e1c8471d | |
parent | 7ecfcdcaf542561bd3a985840b1855b7b821f82d (diff) | |
download | genpkg-ee23e98d42521ac33dcc6840f6db07bf3ba8ef3b.tar.gz genpkg-ee23e98d42521ac33dcc6840f6db07bf3ba8ef3b.tar.xz |
Simplify comment header printing logic.
-rwxr-xr-x | bin/pbfields | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/pbfields b/bin/pbfields index f663044..9846aab 100755 --- a/bin/pbfields +++ b/bin/pbfields @@ -50,10 +50,13 @@ $1 == "customvars" { } END { - if(!maintainer && !packager) { packager = "Anonymous" } - if(maintainer) print "# Maintainer: " maintainer - else if(packager) print "# Packager: " packager - print "" + if(maintainer){ + print "# Maintainer: " maintainer "\n" + }else if(packager){ + print "# Packager: " packager "\n" + }else{ + print "# Packager: Anonymous\n" + } OFS = "="; ORS = "\n"; for(i = 1; i <= customlen; i++){ |