Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > a412ceb851151854794ced2a242192bb > files > 160

howto-html-fr-20080722-1mdv2010.0.noarch.rpm

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>A. Comment ce document est généré</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.64.1">
<link rel="home" href="index.html" title="Guide pratique du RAID ATA sous Linux">
<link rel="up" href="index.html" title="Guide pratique du RAID ATA sous Linux">
<link rel="previous" href="ar01s11.html" title="11. Pour plus d'informations">
<link rel="next" href="apb.html" title="B. 
		Qu'en est-il si vous avez un RAID HighPoint HPT à la place d'un Promise
		FastTrak ?
	">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">A. Comment ce document est généré</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="ar01s11.html">Précédent</a> </td>
<th width="60%" align="center"> </th>
<td width="20%" align="right"> <a accesskey="n" href="apb.html">Suivant</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="appendix" lang="fr">
<div class="titlepage">
<div><div><h2 class="title">
<a name="app1"></a>A. Comment ce document est généré</h2></div></div>
<div></div>
</div>
<p>
		Vous voudriez savoir comment j'ai généré ce guide pratique ? Ou bien
		vous avez téléchargé la version SGML de ce document, modifié des morceaux et
		vous voudriez maintenant savoir comment vous pourriez fabriquer le guide
		pratique ?
	</p>
<p>
		Je dois m'assurer qu'il n'y a pas d'erreurs dans mon source SGML en tapant
		la commande <span><b class="command">nsgmls -s ataraid.sgml</b></span>. J'ai créé un script
		appellé <tt class="filename">makehowto</tt> et lancé la commande
		<span><b class="command">./makehowto ataraid.sgml</b></span>. Voici mon script
		<tt class="filename">makehowto</tt> :
	</p>
<pre class="screen">
#!/bin/bash
#
# makehowto by Murty Rompalli
# (c) All Rights Reserved
# Free for non commercial use. All other uses must be authorized explicitly
# by the creator. Contact me for more info. murty@solar.m u r t y.net
#

function maketut() {
echo;echo Creating Tutorial Files ...
jade \
    -t sgml \
    -d /usr/lib/sgml/stylesheets/nwalsh-modular/html/ldp.dsl\#html \
    $1.sgml
}

function makehtml {
echo;echo Creating html file: $1.html ...
jade \
    -t sgml \
    -d /usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl \
    -V nochunks \
    $1.sgml &gt; $1.html
}

function maketxt {
	if [ -f $1.html ]
	then
		echo;echo Creating text file: $1.txt ...
		lynx -dump $1.html &gt; $1.txt
	else
		echo;echo $1.html not found, creating ...
		makehtml $1
		maketxt $1
	fi
}

function makepdf {
	[ -f $1.ps ] &amp;&amp; gzip $1.ps

	if [ -f $1.ps.gz ]
	then
		echo;echo Creating pdf file: $1.pdf ...
		gzip -dc $1.ps.gz |
		gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$1.pdf -
	else
		echo;echo $1.ps.gz not found creating ...
		makeps $1
		makepdf $1
	fi
}

function maketex {
echo;echo Creating TeX file $1.tex ...
jade \
    -t tex \
    -d /usr/lib/sgml/stylesheets/cygnus-both.dsl\#print \
    $1.sgml
gzip $1.tex
echo $1.tex gzipped to $1.tex.gz
}

function makedvi {
echo;echo Creating DVI file $1.dvi ...
db2dvi $1.sgml  &gt;/dev/null 2&gt;&amp;1
echo See $1.log for errors
gzip $1.dvi
echo $1.dvi gzipped to $1.dvi.gz
}

function makeps {
echo;echo Creating PS file $1.ps ...
db2ps $1.sgml  &gt;/dev/null 2&gt;&amp;1
echo See $1.log for errors
gzip $1.ps
echo $1.ps gzipped to $1.ps.gz
}

#### Begin Main Program

echo "
makehowto utility for generating HOWTO from SGML file.
(c) Murty Rompalli
"

[ x$1 = x ] &amp;&amp;
echo "Error. Usage: $0 abc.sgml '{tut|html|pdf|tex|dvi|ps|all}'

Option 'all' is default if sgml file is the only option supplied.

Options:
-------
tut	Make complete tutorial, i.e., generate necessary html files
html	Make a printable single HTML file
pdf	Make a PDF file
tex	Make a TeX source file, gzipped
dvi	Make a DVI file, gzipped
ps	Make a PostScript file, gzipped
all	Generate all possible formats.

" &amp;&amp; exit

file="`echo $1|sed 's/\.sgml$//'`"

[ x$file = x ] &amp;&amp;
echo Error. Usage: $0 abc.sgml '{tut|html|tex|dvi|ps|all}' &amp;&amp; exit

[ -f $file.sgml ] || {
echo Error. $file.sgml does not exist
exit
}

[ -r $file.sgml ] || {
echo Error. $file.sgml not readable
exit
}

if [ x$2 = x ]
then
	action=all
else
	action=$2
fi

case $action in
tut|tutorial) maketut $file
		;;
html|htm) makehtml $file
		;;
tex|latex) maketex $file
		;;
dvi) makedvi $file
		;;
ps) makeps $file
		;;
text|txt) maketxt $file
		;;
pdf) makepdf $file
		;;
all) 	maketut $file
	makehtml $file
	maketex $file
	makedvi $file
	makeps $file
	maketxt $file
	makepdf $file
	;;
*) echo error
	;;
esac

\rm -f $file.aux
\rm -f $file.tex
\rm -f $file.dvi

echo;echo makehowto: Finished
echo You can review $file.log and delete it.
echo Thank you for using makehowto.
echo</pre>
<p>
		Vous pouvez taper seulement la commande
		<span><b class="command">./makehowto ataraid.sgml pdf</b></span>, par exemple, si vous voulez
		ne fabriquer que la version PDF. Tapez seulement <span><b class="command">./makehowto</b></span>
		pour obtenir plus d'aide sur l'utilisation du script.
		<a href="http://www.murty.net/ataraid/files/makehowto" target="_top">Cliquez ici</a>
		pour télécharger ce script howto.
	</p>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="ar01s11.html">Précédent</a> </td>
<td width="20%" align="center"><a accesskey="u" href="index.html">Niveau supérieur</a></td>
<td width="40%" align="right"> <a accesskey="n" href="apb.html">Suivant</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">11. Pour plus d'informations </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Sommaire</a></td>
<td width="40%" align="right" valign="top"> B. 
		Qu'en est-il si vous avez un RAID HighPoint HPT à la place d'un Promise
		FastTrak ?
	</td>
</tr>
</table>
</div>
</body>
</html>