summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/genpkg5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/genpkg b/bin/genpkg
index 047a07f..22ec225 100755
--- a/bin/genpkg
+++ b/bin/genpkg
@@ -57,15 +57,14 @@ END { exit !found }
return $?
}
-# Create an extra "ver" field in case the packager needs to modify
-# the version.
+# Create an extra "ver" field in case the packager needs to modify the pkgver.
dupver()
{
awk '
BEGIN { OFS = FS = "\n"; RS = ""; ORS = "\n\n" }
$1 == "pkgver" { pkgver = $2 }
1
-END { print "ver", pkgver }
+END { if(pkgver) print "ver", pkgver }
'
}