blob: d4d8d0f886ee41832a1df0a84e7bade082fe37c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
docs_name=$1
docs_path=$2
devhelp_file="${docs_name}/${docs_name}.devhelp2"
pushd $docs_path >/dev/null
# Fix .devhelp2 file so it contains keywords from out ontologies
cat $devhelp_file | sed "s/<\/functions>//" - | sed "s/<\/book>//" - >fixed.devhelp2 2>/dev/null
cat ../*-ontology.keywords >>fixed.devhelp2 2>/dev/null
rm ../*-ontology.keywords 2>/dev/null
echo -e " </functions>\n</book>" >>fixed.devhelp2
# Replace devhelp2 file
mv fixed.devhelp2 $devhelp_file
popd >/dev/null
|