press-release/tools Makefile,1.1,1.2
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Sun Aug 13 18:51:51 UTC 2006
Author: jtr
Update of /cvs/docs/press-release/tools
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10499/tools
Modified Files:
Makefile
Log Message:
Stage 1 reorganization completed. Hope I don't have to do any more interim
commits and bother you any more. Thanks for your patience.
Index: Makefile
===================================================================
RCS file: /cvs/docs/press-release/tools/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile 13 Aug 2006 18:40:42 -0000 1.1
+++ Makefile 13 Aug 2006 18:51:44 -0000 1.2
@@ -1,15 +1,15 @@
########################################################################
# The ${DOC_BASE} symbol provides the basic name for this document.
-DOC_BASE=fdp-pr
+# DOC_BASE=fdp-pr
########################################################################
# The ${PRI_LANG} symbol gives the locale for the original language for
# the document.
-PRI_LANG=en_US
+# PRI_LANG=en_US
########################################################################
# The ${OTHERS} symbol is a list of additional locales into which the
# document is to be translated.
# OTHERS=de es it no
-OTHERS=pt
+# OTHERS=pt
########################################################################
# WARNING! Make no changes below this line or you will void the
# warranty ;-)
@@ -17,7 +17,7 @@
# Provide some utility macros
XMLTO =xmlto
XMLTOFLAGS=-m params.xsl
-XSL =fdp-pr.xsl
+XSL =${TOOLS}/fdp-pr.xsl
SED =/bin/sed
XML2PO =xml2po
MSGMERGE=msgmerge
@@ -56,11 +56,11 @@
help::
@printf "${HFMT}" "pdf-${1}" "Generate PDF for locale '${1}'"
-${DOC_BASE}-$(1).pdf:: ${DOC_BASE}-$(1).xml params.xsl.in ${XSL}
+${DOC_BASE}-$(1).pdf:: ${DOC_BASE}-$(1).xml ${TOOLS}/params.xsl.in ${XSL}
LC_ALL=${1}.UTF-8 ${SED} \
-e "s|DATE|$$(shell LC_ALL=${1} date +'%x %X')|" \
-e "s|LANG|${1}|" \
- params.xsl.in >params.xsl
+ ${TOOLS}/params.xsl.in >params.xsl
LC_ALL=${1}.UTF-8 ${XMLTO} -x ${XSL} ${XMLTOFLAGS} pdf \
${DOC_BASE}-$(1).xml
@@ -86,10 +86,10 @@
help::
@printf "${HFMT}" "txt-${1}" "Generate text version for locale '${1}'"
-${DOC_BASE}-$(1).txt:: ${DOC_BASE}-$(1).xml params.xsl.in ${XSL}
+${DOC_BASE}-$(1).txt:: ${DOC_BASE}-$(1).xml ${TOOLS}/params.xsl.in ${XSL}
LC_ALL=${1}.UTF-8 ${SED} \
-e "s|DATE|$$(shell LC_ALL=${1} date +'%x %X')|" \
- params.xsl.in >params.xsl
+ ${TOOLS}/params.xsl.in >params.xsl
LC_ALL=${1}.UTF-8 ${XMLTO} -x ${XSL} ${XMLTOFLAGS} $${XMLPOSTFLAGS} \
txt ${DOC_BASE}-$(1).xml
@@ -102,7 +102,7 @@
# FIXME $(foreach LOCALE,${LANGUAGES},$(eval $(call TXT_template,${LOCALE})))
########################################################################
# Always generate the current date.
-params.xsl: params.xsl.in Makefile
+params.xsl: ${TOOLS}/params.xsl.in Makefile
${SED} -e "s|DATE|$$(LC_ALL=${PRI_LANG} date +'%x %X')|" \
-e "s|LANG|${PRI_LANG}|" \
$< >$@.tmp && move-if-change $@.tmp $@
More information about the Fedora-docs-commits
mailing list