[kde-doc-english]DTD incompatibility

Jason Harris kstars at 30doradus.org
Fri Mar 21 21:46:18 CET 2003


Hello again,

I have modified the file kdeedu/doc/kstars/Makefile.am to look like this:
---------------------------------
KDE_LANG = en
KDE_DOCS = AUTO
docs-am: docs-ks index.cache.bz2

docs-ks:
	minor=`echo $(VERSION) | cut -f 2 -d .`; \
	echo $(minor); \
	if test $(VERSION) = 0; \
	then \
	cp -f index3.0.docbook index.docbook; \
	else \
	cp -f index3.1.docbook index.docbook; \
	fi;
-------------------------------------

Frankly, I know very little about editing Makefiles, so this is probably a 
criminally ugly hack, but I think it works.  It successfully determines 
whether the user has KDE 3.0.x or KDE 3.1.x and selects the corresponding 
version of the index.docbook file (the files index3.0.docbook and 
index3.1.docbook differ only in their DOCTYPE lines), before compiling.

I guess it would be better to have only one index.docbook and modify its 
DOCTYPE line through scripting, but that's more than I want to deal with 
right now. :)  Also, I still need to distinguish between 3.1.0 and HEAD.  
Does anyone know the VERSION string for HEAD?  I'm away from my HEAD machine 
at the moment.

This isn't committed to CVS yet; does anyone have any comments on it?

Jason
-- 
KStars:  A K Desktop Planetarium
http://edu.kde.org/kstars



More information about the kde-doc-english mailing list