[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Ny mulighed for URL-ekspansion



I den tråd der hedder "fejl i cvs"
har Michael Rasmussen ønsket at kunne styre 
hvad han referer til.

Jeg har nu lavet noget smart.
I Makefile.subdir (dvs. den Makefile som ender i hvert underkatalog)
laves en fil linuxbog.sgml hvis man kører "make start".
I den fil står hvad hoved-URL'en er for bogen. Typisk er
det http://cvs.linuxbog.dk, men I kan bare ændre.
Når jeg trykker på "release-knappen" har jeg tænkt at 
køre "make clean", rette i Makefile.subdir så det
er http://www.linuxbog.dk som er målet.

For at udnytte det skal man i bog.sgml lige under magic-linierne
inkludere følgende
<!ENTITY % url-entities SYSTEM "linuxbogurl.sgml">
  %url-entities;  <!-- This is where we include it -->

Herefter har I mulighed for at anføre en vilkårlig URL til bøgerne
som &linuxbogurl; - det vil blive ekspanderet til http://cvs.linuxbog.dk
hhv. http://www.linuxbog.dk.

Jeg har indsat dette i "dokumentation"-bogen i CVS.


-- 
Peter Toft, Ph.D. sslug@sslug http://pto.linux.dk

  First they ignore you, then they laugh at you, 
  then they fight you, then you win. 
  -- Mahatma Ghandi



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:51 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *