3 # Generate asciidoc from the features.conf file in the top-level direftory.
4 # Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2005
8 TMPFILE
=$
(mktemp import-features.conf.XXXXXX
) ||
exit 1
12 echo "$1" |
sed 's/^#\+\( \)*//'
19 echo "$(strip_comment "$line")"
24 config_name
="features.conf"
31 if [ -n "$section_title" ]; then
32 # "### Feature configuration file"
33 if [ "$section_title" != "Notes for developers" ]; then
35 if [ -n "$config_name" ]; then
36 section_title
="$section_title (\`$config_name\`)"
37 label
="[[$(echo $config_name | sed 's/_/-/g')]]"
42 $(echo "$section_title" | tr 'A-Za-z -_`' "$section_mark")
57 cat "$CONFFILE" |
while read line
; do
62 section_title
=$
(strip_comment
"$line")
65 config_name
=$
(echo "$line" | cut
-d '=' -f 1)
69 config_default
=$
(strip_comment
"$line" |
sed 's/Default://')
70 config_default
="*Default:* $config_default"
76 line
=$
(strip_comment
"$line")
77 echo "$line" >> $TMPFILE
86 # vim: tabstop=4 shiftwidth=4 textwidth=76