From f7b99947fe80996657a34ca9df1f60cbc6b8b7e7 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 13 Sep 2008 18:48:18 +0200 Subject: [PATCH] Generated token list by parsing the sources. Signed-off-by: Florent Bruneau --- postlicyd/filter_tokens.sh | 9 ++------- postlicyd/policy_tokens.sh | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/postlicyd/filter_tokens.sh b/postlicyd/filter_tokens.sh index 1cbb090..bc6119e 100755 --- a/postlicyd/filter_tokens.sh +++ b/postlicyd/filter_tokens.sh @@ -59,7 +59,7 @@ extern const char *ftokens[FTK_count]; __attribute__((pure)) filter_token filter_tokenize(const char *s, ssize_t len); -#endif /* MUTT_LIB_LUA_LUA_TOKEN_H */ +#endif /* PFIXTOOLS_FILTERS_TOKENS_H */ EOF } @@ -108,7 +108,7 @@ EOF } grep_self() { - grep '^## ' "$1" | cut -d' ' -f2 + grep 'filter_register( *"' *.c | sed 's/.*filter_register( *"\(.*\)" *,.*/\1/' } trap "rm -f $1" 1 2 3 15 @@ -121,8 +121,3 @@ esac chmod -w $1 exit 0 - -############ Put tokens here ############ -## rbl -## greylist -## poisonous diff --git a/postlicyd/policy_tokens.sh b/postlicyd/policy_tokens.sh index 162607d..2b2b07e 100755 --- a/postlicyd/policy_tokens.sh +++ b/postlicyd/policy_tokens.sh @@ -59,7 +59,7 @@ extern const char *ptokens[PTK_count]; __attribute__((pure)) postlicyd_token policy_tokenize(const char *s, ssize_t len); -#endif /* MUTT_LIB_LUA_LUA_TOKEN_H */ +#endif /* PFIXTOOLS_POLICY_TOKENS_H */ EOF } -- 2.20.1