From edf8b4d8a6a665c2aa150993cd813ea6c5cf12e1 Mon Sep 17 00:00:00 2001 From: Marc Horowitz Date: Mon, 22 Jul 1996 20:49:46 +0000 Subject: this commit includes all the changes on the OV_9510_INTEGRATION and OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 4 ++++ src/util/et/et_c.awk | 31 ++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) (limited to 'src/util/et') diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 34cc96338..233b5b9d7 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -14,6 +14,10 @@ Mon Jun 10 21:54:09 1996 Theodore Ts'o * vfprintf.c, internal.h, compile_et.c, et_c.awk, com_err.c: Change _WINDOWS to _MSDOS, and add check for _WIN32. +Sun May 12 01:13:02 1996 Marc Horowitz + + * et_c.awk: deal with continuations in the input .et file. + Wed Mar 20 00:19:08 1996 Theodore Y. Ts'o * Makefile.in (SRCS): Fix SRCS definition so that it doesn't fool diff --git a/src/util/et/et_c.awk b/src/util/et/et_c.awk index 8067e7190..ac1321cd0 100644 --- a/src/util/et/et_c.awk +++ b/src/util/et/et_c.awk @@ -120,7 +120,18 @@ c2n["_"]=63 table_item_count = 0 } +(continuation == 1) && ($0 ~ /\\[ \t]*$/) { + text=substr($0,1,length($0)-1); + printf "\t\t\"%s\"\n", text > outfile +} + +(continuation == 1) && ($0 ~ /"[ \t]*$/) { + printf "\t\t\"%s,\n", $0 > outfile + continuation = 0; +} + /^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,[ \t]*$/ { + table_item_count++ skipone=1 next } @@ -135,10 +146,28 @@ c2n["_"]=63 table_item_count++ } +/^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,[ \t]*".*\\[ \t]*$/ { + text="" + for (i=3; i<=NF; i++) { + text = text FS $i + } + text=substr(text,2,length(text)-2); + printf "\t%s\"\n", text > outfile + continuation++; +} + +/^[ \t]*".*\\[ \t]*$/ { + if (skipone) { + text=substr($0,1,length($0)-1); + printf "\t%s\"\n", text > outfile + continuation++; + } + skipone=0 +} + { if (skipone) { printf "\t%s,\n", $0 > outfile - table_item_count++ } skipone=0 } -- cgit