aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/buildexamplelist.sh
blob: 0a9bb7ec02257f0630583f13457c2bf81021b4ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

echo "namespace Eigen {"
echo "/** \page ExampleList"
echo "<h1>Selected list of examples</h1>"

grep \\addexample $1/Eigen/* -R | cut -d \\ -f 2- | \
while read example;
do
anchor=`echo "$example" | cut -d " " -f 2`
text=`echo "$example" | cut -d " " -f 4-`
echo "\\\li \\\ref $anchor \"$text\""
done
echo "*/"
echo "}"