Switch to unified view

a/website/faqsandhowtos/makeindex.sh b/website/faqsandhowtos/makeindex.sh
1
#!/bin/sh
1
#!/bin/sh
2
WIDX=WikiIndex.txt
2
WIDX=faqsindex.txt
3
3
4
echo "== Recoll Wiki file index" > $WIDX
4
echo "== Recoll Faqs and Howtos file index" > $WIDX
5
for f in *.txt; do
5
for f in *.txt; do
6
 if test "$f" = $WIDX ; then continue; fi
6
 if test "$f" = $WIDX ; then continue; fi
7
 h="`basename $f .txt`.html"
7
 h="`basename $f .txt`.html"
8
 title=`head -1 "$f" | sed -e 's/=//g' -e 's/^ *//' -e 's/ *$//' -e 's/
//g'`
8
 title=`head -1 "$f" | sed -e 's/=//g' -e 's/^ *//' -e 's/ *$//' -e 's/
//g'`
9
 echo 'link:'$h'['$title']' >> $WIDX
9
 echo 'link:'$h'['$title']' >> $WIDX