From ee23e98d42521ac33dcc6840f6db07bf3ba8ef3b Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Fri, 25 May 2012 12:58:16 -0400 Subject: Simplify comment header printing logic. --- bin/pbfields | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bin') 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++){ -- cgit v1.2.3-24-g4f1b