fixed new awk code which generated tagtable.c

CVS patchset: 536
CVS date: 1996/04/15 21:08:12
This commit is contained in:
ewt 1996-04-15 21:08:12 +00:00
parent 29414279b6
commit c1eae68958
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ tagtable.c: rpmlib.h Makefile
echo '#include "rpmlib.h"' > tagtable.c
echo '' >> tagtable.c
echo 'const struct rpmTagTableEntry rpmTagTable[] = {' >> tagtable.c
awk '/(RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ { printf("\t{ \"%s\", %s }\n", $$2, $$3); }' < rpmlib.h >> tagtable.c
awk '/(RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ { printf("\t{ \"%s\", %s },\n", $$2, $$3); }' < rpmlib.h >> tagtable.c
echo '};' >> tagtable.c
echo '' >> tagtable.c
echo 'const int rpmTagTableSize = sizeof(rpmTagTable) / sizeof(struct rpmTagTableEntry);' >> tagtable.c