X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=make-recipes.sh;fp=make-recipes.sh;h=2220beed6827cbbe41d6275deb5505cf8ca4dda8;hp=0000000000000000000000000000000000000000;hb=b6d5c9e646d0aa18699a88d02ed9205380553b65;hpb=a057a058e72d0949db4140e9a03b7a0e5b3c823c diff --git a/make-recipes.sh b/make-recipes.sh new file mode 100755 index 0000000..2220bee --- /dev/null +++ b/make-recipes.sh @@ -0,0 +1,73 @@ +#!/bin/sh - +# libguestfs +# Copyright (C) 2009 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +cat < + + guestfish recipes + + + +

guestfish recipes

+

You can also find these in the + recipes/ + subdirectory of the source. + +

Table of recipes

+ ' +echo +echo + +for f in recipes/*.sh; do + b=`basename $f .sh` + echo -n '' + echo -n '

'$b'.sh' + if [ -r recipes/$b.title ]; then + echo -n ': ' + cat recipes/$b.title + fi + echo -n 'permalink' + echo '

' + if [ -r recipes/$b.html ]; then + cat recipes/$b.html + fi + echo '

'$b'.sh

' + echo '
'
+    sed -e 's,&,\&,g' -e 's,<,\<,g' -e 's,>,\>,g' < $f
+    echo '
' + if [ -r recipes/$b.example ]; then + echo '

Example output

' + echo '
'
+	sed -e 's,&,\&,g' -e 's,<,\<,g' -e 's,>,\>,g' < recipes/$b.example
+	echo '
' + fi +done + +echo ''