press-release Makefile,1.10,1.11

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Mon Aug 14 13:12:46 UTC 2006


Author: jtr

Update of /cvs/docs/press-release
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5202

Modified Files:
	Makefile 
Log Message:
Removed <fdp-pr> attributes in favor of explicit elements, so we can
get all the translatable strings out in the open.



Index: Makefile
===================================================================
RCS file: /cvs/docs/press-release/Makefile,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Makefile	13 Aug 2006 19:25:52 -0000	1.10
+++ Makefile	14 Aug 2006 13:12:43 -0000	1.11
@@ -8,13 +8,15 @@
 # NOTES TO DOCUMENT AUTHORS AND TRANSLATORS
 # -----------------------------------------
 #
-# Steps to add a press release:
-# 1)	Create a new directory under "releases/" such as "releases/foo".
-# 2)	Copy the "tools/Sample-makefile" to "releases/foo/Makefile".
-# 3)	Fill in the DOC_BASE, PRI_LANG and OTHERS definitions in the
-# 	"releases/foo/Makefile"
-# 4)	Key in your document as "releases/foo/${DOC_BASE}-${PRI_LANG}.xml"
-# 5)	Build your document with a simple "$ make" command.
+# To create a new press release, type the following command in THIS
+# directory:
+#
+# 	$ make DOC_BASE=foo PRI_LANG=en_US OTHERS= new
+#
+# Where 'foo' is the name for your new document.  Replace 'en_US' by
+# your locale.  If you already have translators signed up, then you
+# can list them in the 'OTHERS=' value; if not, you can always edit
+# your document's "Makefile" setting.
 ########################################################################
 SUBDIRS	:=$(foreach doc,$(shell ls releases | fgrep -v CVS),releases/${doc})
 TARGETS	=all clean distclean clobber pot help po pot pdf showvars mrproper
@@ -32,3 +34,25 @@
 	@echo "SUBDIRS=${SUBDIRS}"
 	@echo "TARGETS=${TARGETS}"
 	@echo "TARGET=${TARGET}"
+
+########################################################################
+# To generate a skeleton for a new document, do this:
+#     $ make DOC_BASE=NewDoc PRI_LANG=my_LA OTHERS= new
+#
+
+DOC_BASE=RTFM
+PRI_LANG=RTFM
+OTHERS	=
+
+new::
+	mkdir releases/${DOC_BASE}
+	sed -e 's/THEXML/${DOC_BASE}/g' -e 's/THELANG/${PRI_LANG}/g' 	\
+		-e 's/THEOTHERS/${OTHERS}/g'				\
+		tools/skel/Makefile >releases/${DOC_BASE}/Makefile
+	sed -e 's/EXAMPLE/${DOC_BASE}/g' -e 's/THELANG/${PRI_LANG}/g' 	\
+		-e 's/THEOTHERS/${OTHERS}/g'				\
+		tools/skel/EXAMPLE-en_US.xml 				\
+		>releases/${DOC_BASE}/${DOC_BASE}-${PRI_LANG}.xml
+########################################################################
+# END OF MAKEFILE
+########################################################################




More information about the docs-commits mailing list