Mercurial > ecos
changeset 528:c3aae583b718
* sgml/makemakefile: Allow eCos package version to be specified
(when not "current") as the first command line parameter.
| author | jld |
|---|---|
| date | Wed, 22 Jan 2003 10:08:58 +0000 |
| parents | 3982e53923d5 |
| children | 72b037a36620 |
| files | doc/ChangeLog doc/sgml/makemakefile |
| diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +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
--- a/doc/sgml/makemakefile +++ b/doc/sgml/makemakefile @@ -68,15 +68,17 @@ cat >ecos.sgml <<EOF <!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
