1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

More updates. Fix formatting for examples, support long lines in examples.

(This used to be commit a3f8877038)
This commit is contained in:
Jelmer Vernooij 2005-06-13 12:49:10 +00:00 committed by Gerald W. Carter
parent 7639ec0214
commit 6c39a459e9
4 changed files with 13 additions and 8 deletions

View File

@ -227,10 +227,7 @@ libcups.so.2 => /usr/lib/libcups.so.2 (0x40123000)
<smbconfoption name="path">/var/spool/samba-special</smbconfoption>
<smbconfoption name="printing">sysv</smbconfoption>
<smbconfoption name="printcap">lpstat</smbconfoption>
<smbconfoption name="print command">echo "NEW: `date`: printfile %f" \</smbconfoption>
<member><parameter> >> /tmp/smbprn.log ; \</parameter></member>
<member><parameter>echo " `date`: p-%p s-%s f-%f" >> /tmp/smbprn.log ; \</parameter></member>
<member><parameter>echo " `date`: j-%j J-%J z-%z c-%c" >> /tmp/smbprn.log ; rm %f</parameter></member>
<smbconfoption name="print command">echo "NEW: `date`: printfile %f" >> /tmp/smbprn.log ; echo " `date`: p-%p s-%s f-%f" >> /tmp/smbprn.log ; echo " `date`: j-%j J-%J z-%z c-%c" >> /tmp/smbprn.log ; rm %f </smbconfoption>
<smbconfoption name="public">no</smbconfoption>
<smbconfoption name="guest ok">no</smbconfoption>
<smbconfoption name="writable">no</smbconfoption>

View File

@ -1150,9 +1150,7 @@ site). See <link linkend="prtdollar">next example</link>.
<smbconfcomment>members of the ntadmin group should be able to add drivers and set</smbconfcomment>
<smbconfcomment>printer properties. root is implicitly always a 'printer admin'.</smbconfcomment>
<smbconfoption name="printer admin">@ntadmin</smbconfoption>
<member>...</member>
<smbconfsection name="[printers]"/>
<member>...</member>
<smbconfsection name="[print$]"/>
<smbconfoption name="comment">Printer Driver Download Area</smbconfoption>
<smbconfoption name="path">/etc/samba/drivers</smbconfoption>

View File

@ -102,7 +102,7 @@
</xsl:template>
<xsl:template match="smbconfblock">
<xsl:text>&#10;\begin{lstlisting}[language=smbconf]&#10;</xsl:text>
<xsl:text>&#10;\begin{lstlisting}[language=smbconf,style=smbconfblock]&#10;</xsl:text>
<xsl:apply-templates/>
<xsl:text>\end{lstlisting}&#10;</xsl:text>
</xsl:template>

View File

@ -515,6 +515,16 @@ footskip=.025in}
morecomment=[l]{\#},
}
\lstset{backgroundcolor=\color{lightgray},frame=single,}
\newcommand{\linebreaksign}{\hbox{\ensuremath\hookleftarrow}}
\lstdefinestyle{smbconfblock}
{
breaklines=true,
backgroundcolor=\color{lightgray},
frame=single,
frameround=tttt,
prebreak={\space\linebreaksign}
}
\newcommand{\smbconfsection}[1]{\emph{#1}}
\newcommand{\smbconfoption}[1]{\index{#1}\emph{#1}}