summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-25 18:58:16 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-25 18:58:16 +0200
commitee23e98d42521ac33dcc6840f6db07bf3ba8ef3b (patch)
tree0d263a4c130febbe79c4e8d1031ac164e1c8471d
parent7ecfcdcaf542561bd3a985840b1855b7b821f82d (diff)
downloadgenpkg-ee23e98d42521ac33dcc6840f6db07bf3ba8ef3b.tar.gz
genpkg-ee23e98d42521ac33dcc6840f6db07bf3ba8ef3b.tar.xz
Simplify comment header printing logic.
-rwxr-xr-xbin/pbfields11
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++){