From: Marcus Brinkmann Date: Thu, 24 Apr 2003 15:15:29 +0000 (+0000) Subject: Pretty print. X-Git-Tag: gpgme-1.2.0@1385~682 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33e3a1b6cea2d0c617bce2a09cac6c2e0058e042;p=gpgme.git Pretty print. --- diff --git a/trunk/gpgme/mkstatus b/trunk/gpgme/mkstatus index 03779be..7895ec7 100755 --- a/trunk/gpgme/mkstatus +++ b/trunk/gpgme/mkstatus @@ -39,10 +39,10 @@ static struct status_table_s status_table[] = EOF awk ' -/GPGME_STATUS_ENTER/ { okay=1 } -!okay {next} -/}/ { exit 0 } -/GPGME_STATUS_[A-Za-z_]*/ { sub (/,/, "", $1); printf " { \"%s\", %s },\n", substr($1,14), $1 } +/GPGME_STATUS_ENTER/ { okay = 1 } +!okay { next } +/}/ { exit 0 } +/GPGME_STATUS_[A-Za-z_]*/ { sub (/,/, "", $1); printf " { \"%s\", %s },\n", substr($1,14), $1 } ' | sort cat <