<body>
<h1>guestfish recipes</h1>
<p>You can also find these in the
- <a href="http://git.et.redhat.com/?p=libguestfs.git;a=tree;f=recipes;hb=HEAD"><code>recipes/</code>
+ <a href="http://git.annexia.org/?p=libguestfs.git;a=tree;f=recipes;hb=HEAD"><code>recipes/</code>
subdirectory</a> of the source.</p>
<p>
- <a href="http://et.redhat.com/~rjones/libguestfs/files/">Download
+ <a href="http://libguestfs.org/download/">Download
libguestfs and guestfish here</a> or
- <a href="http://et.redhat.com/~rjones/libguestfs/">go to the
+ <a href="http://libguestfs.org/">go to the
libguestfs home page</a>.
</p>
b=`basename $f .sh`
echo -n ' <li> <a href="#'$b'">'$b.sh
if [ -r recipes/$b.title ]; then
- echo -n ': '
- cat recipes/$b.title
+ echo -n ': '
+ cat recipes/$b.title
fi
echo '</a> </li>'
done
echo -n '<a name="'$b'"></a>'
echo -n '<h2>'$b'.sh'
if [ -r recipes/$b.title ]; then
- echo -n ': '
- cat recipes/$b.title
+ echo -n ': '
+ cat recipes/$b.title
fi
echo -n '<small style="font-size: 8pt; margin-left: 2em;"><a href="#'$b'">permalink</a></small>'
echo '</h2>'
if [ -r recipes/$b.html ]; then
- cat recipes/$b.html
+ cat recipes/$b.html
fi
echo '<h3>'$b'.sh</h3>'
- echo '<pre class="example">'
- sed -e 's,&,\&,g' -e 's,<,\<,g' -e 's,>,\>,g' < $f
- echo '</pre>'
+ echo '<div class="example">'
+ source-highlight --output=STDOUT --src-lang=sh --input=$f
+ echo '</div>'
if [ -r recipes/$b.example ]; then
- echo '<h3>Example output</h3>'
- echo '<pre>'
- sed -e 's,&,\&,g' -e 's,<,\<,g' -e 's,>,\>,g' < recipes/$b.example
- echo '</pre>'
+ echo '<h3>Example output</h3>'
+ echo '<pre>'
+ sed -e 's,&,\&,g' -e 's,<,\<,g' -e 's,>,\>,g' < recipes/$b.example
+ echo '</pre>'
fi
done