+2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Avoid Unicode hyphens in generated ASCII document files.
+
+ * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
+ (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
+
2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
mingw-get-0.2-mingw32-alpha-2 released.
vpath %.in ${srcdir}/srcdist-doc
srcdist-doc: README.dist NEWS.dist INSTALL.dist
+# We need to ensure that, when we invoke nroff, the generated output
+# will be suited to an ASCII class of typesetter; without the -Tascii
+# option, GNU nroff will substitute Unicode hyphens (u2010) in place
+# of ASCII hyphens (code 45).
+#
+NROFF = nroff -Tascii
+
%.dist: %.in gendoc.simple.sed
- sed -f gendoc.simple.sed $< | nroff > $*
+ sed -f gendoc.simple.sed $< | $(NROFF) > $*
%.simple.sed: %.sed.in
sed -e s,'$${PACKAGE_DIRNAME}',"${PACKAGE_DISTROOT}", \
rm -f $@
for input in $^; do \
case $$input in *.in) \
- sed -f gendoc.combined.sed $$input | nroff >> $@ ;; \
+ sed -f gendoc.combined.sed $$input | $(NROFF) >> $@ ;; \
esac; \
done
echo '$$Document: $@ $$: end of file' >> $@