summaryrefslogtreecommitdiffstats
path: root/collab/horde/addschema.gawk
diff options
context:
space:
mode:
Diffstat (limited to 'collab/horde/addschema.gawk')
-rwxr-xr-xcollab/horde/addschema.gawk12
1 files changed, 12 insertions, 0 deletions
diff --git a/collab/horde/addschema.gawk b/collab/horde/addschema.gawk
new file mode 100755
index 0000000000..e1eaf5165d
--- /dev/null
+++ b/collab/horde/addschema.gawk
@@ -0,0 +1,12 @@
+{
+ if ($0 ~ /^include\W+.*\.schema/)
+ previous_include = 1
+ else {
+ if (previous_include == 1 && include_complete != 1) {
+ print "include /etc/openldap/schema/horde.schema"
+ include_complete = 1
+ }
+ previous_include=0
+ }
+ print
+}