This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Build docs from 'versioned' repository
- From: John Dallaway <jld at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 22 Jan 2003 10:11:41 +0000
- Subject: Build docs from 'versioned' repository
- Organization: eCosCentric Limited
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/doc/ChangeLog,v
retrieving revision 1.11
diff -u -5 -p -r1.11 ChangeLog
--- ChangeLog 4 Jan 2003 18:46:12 -0000 1.11
+++ ChangeLog 22 Jan 2003 10:05:13 -0000
@@ -1,5 +1,10 @@
+2003-01-22 John Dallaway <jld@ecoscentric.com>
+
+ * sgml/makemakefile: Allow eCos package version to be specified
+ (when not "current") as the first command line parameter.
+
2003-01-04 Jonathan Larmour <jifl@eCosCentric.com>
* sgml/makemakefile: Oops, use new entity consistently in generated
ecos.sgml.
Index: sgml/makemakefile
===================================================================
RCS file: /cvs/ecos/ecos/doc/sgml/makemakefile,v
retrieving revision 1.7
diff -u -5 -p -r1.7 makemakefile
--- sgml/makemakefile 4 Jan 2003 18:46:14 -0000 1.7
+++ sgml/makemakefile 22 Jan 2003 10:05:14 -0000
@@ -66,19 +66,21 @@ cat >ecos.sgml <<EOF
<!ENTITY versiondir CDATA "v2_0">
<!ENTITY version CDATA "2.0">
<!ENTITY lt SDATA "[lt ]">
EOF
+PACKAGEVER=${1:-'current'}
+
for i in `cat doclist`; do
line="`echo $i | sed 's/#.*//;'`"
if (test ! -z $line); then
- /bin/echo -n " ../../packages/$i" >> makefile
+ /bin/echo -n " ../../packages/$i" | sed "s@/current/@/${PACKAGEVER}/@g" >> makefile
entityi="`echo $i | sed 's@/@-@g; s@\.@-@g; s@_@-@g; s@-current-doc@@g; s@-current@@g'`"
- echo "<!ENTITY $entityi SYSTEM \"../../packages/$i\">" >> ecos.sgml
+ echo "<!ENTITY $entityi SYSTEM \"../../packages/$i\">" | sed "s@/current/@/${PACKAGEVER}/@g" >> ecos.sgml
fi
done
-echo "<!ENTITY hal-common-current-doc-porting-sgml SYSTEM \"../../packages/hal/common/current/doc/porting.sgml\">" >> ecos.sgml
+echo "<!ENTITY hal-common-current-doc-porting-sgml SYSTEM \"../../packages/hal/common/${PACKAGEVER}/doc/porting.sgml\">" >> ecos.sgml
cat >> makefile <<EOF
MAIN_HTML := ecos.html
MAIN_PDF := ecos.pdf