Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add changelog to documentation

  • Loading branch information...
commit 3f83a33d79104b1e7302ea94ca3afe820b12e222 1 parent 9863dbc
@SamWhited authored
Showing with 14 additions and 7 deletions.
  1. +3 −0  Makefile
  2. +11 −7 poetrytex.dtx
View
3  Makefile
@@ -64,6 +64,7 @@ DO_XELATEX = xelatex --interaction=nonstopmode $< $(REDIRECT)
DO_XELATEX_WRITE18 = xelatex --shell-escape --interaction=nonstopmode $< $(REDIRECT)
DO_XETEX = xetex --interaction=nonstopmode $< $(REDIRECT)
DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) $(REDIRECT) 2>&1
+DO_MAKECHANGES = makeindex -s gglo.ist -o $(NAME).gls $(NAME).glo $< $(REDIRECT) 2>&1
all: $(GENERATED)
doc: $(COMPILED)
@@ -76,6 +77,7 @@ gendoc: $(DTX)
@echo "Compiling documentation"
$(DO_XELATEX_WRITE18)
$(DO_MAKEINDEX)
+ $(DO_MAKECHANGES)
while ($(DO_XELATEX_WRITE18) ; \
grep -q "Rerun to get cross" $(NAME).log ) do true; \
done
@@ -84,6 +86,7 @@ $(DOC): $(DTX)
@echo "Compiling documentation"
$(DO_XELATEX)
$(DO_MAKEINDEX)
+ $(DO_MAKECHANGES)
while ($(DO_XELATEX) ; \
grep -q "Rerun to get cross" $(NAME).log ) do true; \
done
View
18 poetrytex.dtx
@@ -79,7 +79,7 @@
% \name{Sam Whited}\\
% \texttt{sam@samwhited.com}
% }
-% \date{\today\\v1.0\gitrev\gitdirty\gituncommitted}
+% \date{\today\\v1.0\githead\gitdirty\gituncommitted}
%
% \maketitle
% \maketoc
@@ -120,6 +120,9 @@
% idea what \TeX\ is or that this project even exists it is due mostly to her
% influence that it ever got off the ground.
%
+% \StopEventually{}
+% \changes{1.0}{2012/07/18}{Converted package to dtx}
+%
% \section{Package building and loading}
%
% \begin{macrocode}
@@ -541,6 +544,7 @@
% \end{macrocode}
%
% \begin{macro}{\ptspacer}
+% \changes{1.0}{2012/07/17}{Repeat \code{\textbackslash ptspacernum} times}
% \begin{macro}{\ptspacer*}
% The starred version of the \code{ptspacer} command uses \code{\textbackslash%
% hspace*} for indention.
@@ -554,14 +558,14 @@
}
\newcommand*{\@ptspacerStar}{%
\hspace*{\ptspacergap}%
- \Repeat{\ptspacernum}{\ptspacerchar}%
+ \@ptrepeat{\ptspacernum}{\ptspacerchar}%
}
\newcommand*{\@ptspacerNoStar}{%
\hspace{\ptspacergap}%
- \Repeat{\ptspacernum}{\ptspacerchar}%
+ \@ptrepeat{\ptspacernum}{\ptspacerchar}%
}
\ExplSyntaxOn
-\cs_new_eq:NN \Repeat \prg_replicate:nn
+\cs_new_eq:NN \@ptrepeat \prg_replicate:nn
\ExplSyntaxOff
% \end{macrocode}
% \end{macro}
@@ -805,13 +809,13 @@
\endgroup
}
-\newcommand*{\gitrev}{%
+\newcommand*{\githead}{%
\immediate\write18{%
- rm gitrev.tex 2> /dev/null; git rev-parse --short HEAD > gitrev.tex
+ rm githead.tex 2> /dev/null; git rev-parse --short HEAD > githead.tex
}%
\InputIfFileExists{gitrev.tex}{.}{}\unskip%
\immediate\write18{%
- rm gitrev.tex 2> /dev/null
+ rm githead.tex 2> /dev/null
}%
}
Please sign in to comment.
Something went wrong with that request. Please try again.