Consistent with modern latex2man features.
This commit is contained in:
parent
3d28e787ac
commit
5b69308f4d
12
Makefile
12
Makefile
|
@ -4,13 +4,19 @@ FILES = AUTHORS COPYING INSTALL README TODO \
|
||||||
TARFILES = ${FILES} mp_suggest_man.html mp_suggest.1 mp_suggest.man
|
TARFILES = ${FILES} mp_suggest_man.html mp_suggest.1 mp_suggest.man
|
||||||
|
|
||||||
mp_suggest_man.html: mp_suggest_man.tex
|
mp_suggest_man.html: mp_suggest_man.tex
|
||||||
latex2man -H mp_suggest_man.tex mp_suggest_man.html
|
latex2man -H $< $@
|
||||||
|
|
||||||
mp_suggest.1: mp_suggest_man.tex
|
mp_suggest.1: mp_suggest_man.tex
|
||||||
latex2man mp_suggest_man.tex mp_suggest.1
|
latex2man $< $@
|
||||||
|
|
||||||
mp_suggest.man: mp_suggest.1
|
mp_suggest.man: mp_suggest.1
|
||||||
nroff -Tascii -man mp_suggest.1 > mp_suggest.man
|
nroff -Tascii -man $< > $@
|
||||||
|
|
||||||
|
mp_suggest_man.pdf: mp_suggest_man.tex
|
||||||
|
xelatex $<
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm mp_suggest.man mp_suggest.1 mp_suggest_man.log mp_suggest_man.out mp_suggest_man.aux mp_suggest_man.pdf
|
||||||
|
|
||||||
all: ${TARFILES}
|
all: ${TARFILES}
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,27 @@
|
||||||
\documentclass[english]{article}
|
\documentclass[english]{article}
|
||||||
\usepackage[latin1]{inputenc}
|
\usepackage[latin1]{inputenc}
|
||||||
\usepackage{babel}
|
\usepackage{babel}
|
||||||
|
\usepackage{verbatim}
|
||||||
|
|
||||||
|
%% do we have the `hyperref package?
|
||||||
|
\IfFileExists{hyperref.sty}{
|
||||||
|
\usepackage[bookmarksopen,bookmarksnumbered]{hyperref}
|
||||||
|
}{}
|
||||||
|
|
||||||
|
%% do we have the `fancyhdr' package?
|
||||||
\IfFileExists{fancyhdr.sty}{
|
\IfFileExists{fancyhdr.sty}{
|
||||||
\usepackage[fancyhdr,pdf]{latex2man}
|
\usepackage[fancyhdr]{latex2man}
|
||||||
}{
|
}{
|
||||||
|
%% do we have the `fancyheadings' package?
|
||||||
\IfFileExists{fancyheadings.sty}{
|
\IfFileExists{fancyheadings.sty}{
|
||||||
\usepackage[fancy,pdf]{latex2man}
|
\usepackage[fancy]{latex2man}
|
||||||
}{
|
}{
|
||||||
\usepackage[nofancy,pdf]{latex2man}
|
\usepackage[nofancy]{latex2man}
|
||||||
\message{no fancyhdr or fancyheadings package present, discard it}
|
\message{no fancyhdr or fancyheadings package present, discard it}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
\setVersionWord{Version:}
|
\setVersionWord{Version:} %%% that's the default, no need to set it.
|
||||||
\setVersion{0.1a}
|
\setVersion{0.0.1}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
|
@ -28,13 +35,13 @@
|
||||||
\section{Synopsis}
|
\section{Synopsis}
|
||||||
%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\Prog{mp\_suggest} \OptArg{-g --genre}{Set the genre externally}
|
\Prog{mp\_suggest} \oOptArg{-g}{genre}
|
||||||
\OptArg{-p --artist}{Set the artist externally}
|
\oOptArg{-r}{artist}
|
||||||
\OptArg{-a --album}{Set the album externally}
|
\oOptArg{-a}{album}
|
||||||
\Opt{-n --usedir}{Use the album name found in the directory}
|
\oOpt{-d}
|
||||||
\Opt{-n --usefilename}{Use the fine name to set the title}
|
\oOpt{-n}
|
||||||
\Opt{-h --help}{This help message}
|
\oOpt{-h}
|
||||||
\Opt{-v --version}{Version information}
|
\oOpt{-v}
|
||||||
|
|
||||||
\section{Description}
|
\section{Description}
|
||||||
%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
@ -57,7 +64,7 @@ commands can be tweaked, and all of them override the techniques
|
||||||
|
|
||||||
\begin{description}\setlength{\itemsep}{1cm}
|
\begin{description}\setlength{\itemsep}{1cm}
|
||||||
\item[Hy] \Prog{mp\_suggest} requires Hy version $>=$ 0.10.0, as well as
|
\item[Hy] \Prog{mp\_suggest} requires Hy version $>=$ 0.10.0, as well as
|
||||||
a local install of bothe eyeD3 and django. I'll try to get these
|
a local install of both eyeD3 and django. I'll try to get these
|
||||||
fixed eventually.
|
fixed eventually.
|
||||||
|
|
||||||
\end{description}
|
\end{description}
|
||||||
|
|
Loading…
Reference in New Issue