3 # Autogenerate examples page
9 LINKS
=$
(grep 'include:.*' $1)
10 NAMES
=$
(echo $LINKS |
sed 's/include:://g' |
sed 's/\[\]//g')
18 echo ".List $1 examples" >> $OUT
19 echo "[grid=\"rows\"]" >> $OUT
20 echo '[options="autowidth,header",cols="<,<m"]' >> $OUT
21 echo "|===========================" >> $OUT
22 echo "| Example | Source filename(s)" >> $OUT
27 echo "|===========================" >> $OUT
30 echo "List of examples" > $OUT
31 echo "----------------" >> $OUT
32 echo "Following pages contains a list of all code examples, the source " >> $OUT
33 echo "files could be found and are compiled in the +demos/c_simple/+ and" >> $OUT
34 echo "+demos/py_simple+ directories in the source tree." >> $OUT
38 for i
in example_
*.txt
; do
39 LINK
=$
(echo $i |
sed s
/.txt
/.html
/)
41 FNAMES
=$
(get_names
"$i")
42 if $
(echo $i |
grep -q '_py_'); then
45 echo "| link:$LINK[$DESC] | $FNAMES" >> $OUT
50 for i
in example_py_
*.txt
; do
51 LINK
=$
(echo $i |
sed s
/.txt
/.html
/)
53 FNAMES
=$
(get_names
"$i")
54 echo "| link:$LINK[$DESC] | $FNAMES" >> $OUT