Module: sip-router
Branch: master
Commit: 7da6067ab0aba7dd3e755a0aa222fb2ea8721905
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7da6067…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed Feb 18 01:09:47 2009 +0100
Fixed matching of db flags names at the beginning of line.
---
scripts/ser_to_sr.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/ser_to_sr.sh b/scripts/ser_to_sr.sh
index 6826426..f8d5a90 100755
--- a/scripts/ser_to_sr.sh
+++ b/scripts/ser_to_sr.sh
@@ -84,7 +84,7 @@ for file in *.[ch] ; do
sub("/db/", "/lib/srdb2/", $0);
}
-/[^a-zA-Z0-9_]DB_(LOAD_SER|DISABLED|CANON|IS_(TO|FROM)|FOR_SERWEB|PENDING|((CALLER|CALLEE)_)?DELETED|MULTIVALUE|FILL_ON_REG|REQUIRED|DIR)[^a-zA-Z0-9_]/
{
+/(^|[^a-zA-Z0-9_])DB_(LOAD_SER|DISABLED|CANON|IS_(TO|FROM)|FOR_SERWEB|PENDING|((CALLER|CALLEE)_)?DELETED|MULTIVALUE|FILL_ON_REG|REQUIRED|DIR)([^a-zA-Z0-9_]|$)/
{
gsub("DB_LOAD_SER", "SRDB_LOAD_SER", $0);
gsub("DB_DISABLED", "SRDB_DISABLED", $0);
gsub("DB_CANON", "SRDB_CANON", $0);