summaryrefslogtreecommitdiffstats
path: root/kate/data/list-keywords-ldif.sh
blob: d2290f6701bdea57552a97272aeaebb9ee48ea02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

list_keywords=./list-keywords-ldif.awk
schemas="$@"

echo "		<list name=\"attributetypes\">"
cat $schemas | $list_keywords | grep "attributetype" | grep -v '^#' | sed -e "s/'//g" | sort -u | awk '{print "			<item>"$2"</item>"}'
echo "		</list>"
echo "		<list name=\"objectclasses\">"
cat $schemas | $list_keywords | grep "objectclass" | grep -v '^#' | sed -e "s/'//g" | sort -u | awk '{print "			<item>"$2"</item>"}'
echo "		</list>"