Skip to content

Commit c09d3a2

Browse files
authored
Merge pull request #16 from OpenSecEd/bugfixes
Bugfixes and typos
2 parents 9addc9c + e5f30d7 commit c09d3a2

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

texgen.nw

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ program code.
160160
\item[-p] toggles preamble.
161161
\item[-a] toggles abstract.
162162
\item[-c] toggles contents.
163-
\item[-r] toggles README and CONTRIBUTING.
163+
\item[-R] toggles README and CONTRIBUTING.
164164
\item[-L] chooses the license.
165165
\item[-M] chooses the Makefile.
166166
\end{description}
@@ -240,15 +240,15 @@ If the generated document is part of a larger repository, then these files are
240240
probably already present in the repository root.
241241
If not, then we allow the user to add them too.
242242
<<variables>>=
243-
options="${options}r"
244-
usage="${usage} [-r]"
245-
long_usage="${long_usage}\n-r\ttoggles README and CONTRIBUTING"
243+
options="${options}R"
244+
usage="${usage} [-R]"
245+
long_usage="${long_usage}\n-R\ttoggles README and CONTRIBUTING"
246246
repo_files=""
247247
@ These need special treatment later, so we do not add the to the [[files]]
248248
variable.
249249
We add them to a special variable [[repo_files]].
250250
<<arguments handler code>>=
251-
-r)
251+
-R)
252252
repo_files="${repo_files} CONTRIBUTING.md README.md"
253253
shift;;
254254
@
@@ -389,11 +389,11 @@ address.
389389
We take the default values from the environment variables [[NAME]] and [[MAIL]]
390390
(same as for dtxgen~\cite{dtxgen}).
391391
<<variables>>=
392-
options="${options} N:M:A:"
393-
usage="${usage} [-N <author name>] [-M <author mail>] [-A <affiliation>]"
392+
options="${options} N:m:A:"
393+
usage="${usage} [-N <author name>] [-m <author mail>] [-A <affiliation>]"
394394
long_usage="${long_usage}\n-N <author name>\tsets author's name"
395-
long_usage="${long_usage}\n-M <author name>\tsets author's mail"
396-
long_usage="${long_usage}\n-A <author name>\tsets author's affiliation"
395+
long_usage="${long_usage}\n-m <author mail>\tsets author's mail"
396+
long_usage="${long_usage}\n-A <author affil>\tsets author's affiliation"
397397
name="${NAME:=Author Authorsson}"
398398
mail="${MAIL:[email protected]}"
399399
affil="${AFFIL:=Independent researcher}"
@@ -404,7 +404,7 @@ given values.
404404
shift
405405
name="$(get_arg "$@")"
406406
for w in ${name}; do shift; done;;
407-
-M)
407+
-m)
408408
shift
409409
mail="$(get_arg "$@")"
410410
for w in ${mail}; do shift; done;;
@@ -448,17 +448,18 @@ sed -i "s/<package>/${package## }/g" ${f}
448448
@
449449

450450
There is also the location of the submodules, in particular the root directory
451-
of the [[makefiles]] module~\cite{makefiles}.
451+
of the [[makefiles]] module~\cite{makefiles}, this is handled as a prefix to
452+
the path.
452453
<<variables>>=
453454
options="${options}i:"
454-
usage="${usage} [-i <submodule root>]"
455-
long_usage="${long_usage}\n-i <submodule root>\tsets root to find submodules"
455+
usage="${usage} [-i <submodule prefix>]"
456+
long_usage="${long_usage}\n-i <submodule prefix>\tsets prefix to find submodules"
456457
submodule_prefix="."
457458
@ Then we update this variable if its argument is given.
458459
<<arguments handler code>>=
459460
-i)
460461
shift
461-
submodule_prefix="$(get_arg) "$@""
462+
submodule_prefix="$(get_arg "$@")"
462463
for w in ${submodule_prefix}; do shift; done;;
463464
@ Now we can add the following sed(1) substitutions.
464465
<<run sed(1) on file>>=

0 commit comments

Comments
 (0)