diff options
author | Justin Davis <jrcd83@gmail.com> | 2013-04-11 12:39:41 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2013-04-11 12:42:01 +0200 |
commit | 418be7247234652f2a09cf20cbbb892edceed49c (patch) | |
tree | 93c4ac655da29ae8abef2c74756a5f9eec5e484b /bin | |
parent | e5496e3ffa1cec35578c4b286920f7faf08a9ff5 (diff) | |
download | genpkg-418be7247234652f2a09cf20cbbb892edceed49c.tar.gz genpkg-418be7247234652f2a09cf20cbbb892edceed49c.tar.xz |
Remove code for obsolete customvars field.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pbfields | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/bin/pbfields b/bin/pbfields index 662c807..281fc88 100755 --- a/bin/pbfields +++ b/bin/pbfields @@ -33,14 +33,6 @@ $1 == "maintainer" { maintainer = $2; next } # pkgdesc has the only value where parameters do not expand. $1 == "pkgdesc" { output[$1] = qnoexpand($2); next } -$1 == "customvars" { - for(i = 2; i <= NF; i++){ - customvars[i - 1] = $i - } - customlen = NF - 1 - next -} - { for(i = 2; i <= NF; i++) $i = qexpand($i) if(($1 in strfield) || ($1 in cfield)){ @@ -49,8 +41,6 @@ $1 == "customvars" { arrtxt = wraparray(length($1) + 2) if(arrfield[$1]){ output[$1] = arrtxt - }else{ - unk[$1] = arrtxt } } } @@ -73,17 +63,6 @@ END { if(f in cfield) f = "_" f print f, v } - - for(i = 1; i <= customlen; i++){ - f = customvars[i] - if(f in unk){ - print "_" f, unk[f] - }else{ - printf("pbfields: error: customvar \"%s\" has no value\n", f) \ - > "/dev/stderr" - exit 100 - } - } } function wraparray (indent) |