Mike Maxwell escribi?:
> We do some local configuration for our XXE installations--local
> customize.xxe, a custom .rng that extends DocBook, etc. These files
> change more often than I would like...(my fault, I can't stop tweaking).
>
> For our office use, we have a location visible to all the PCs, and set
> the relevant environment variable to tell XXE to look there. So I put
> the revised config files in that one location, and everyone's XXE
> automagically finds them.
>
> For those of us who also have XXE installed on our home computers, it's
> a bit more complex to install revised config files. They go in
> different places on different machines (Windows XP, Windows Vista,
> Windows 7, Mac), and not everyone finds it easy to unpack the files and
> put them in the right place. We occasionally find two versions of the
> same file in separate subdirectories under the config directory.
>
> It seems like it should be simple to build a Java script or some such to
> install our local config files in the right place, depending on the OS.
> Has anyone written such a script?
The following is more or less what I personally use in Windows (XP,
Vista; should also work in NT, 2000, Windows7; will not work in Windows 9x):
- Put your customized files in a dedicated directory, say "XXE-local".
Use subdirectories, if you want, to organize the stuff.
- Put also the following .bat files in this directory, so you will have:
---- XXE-local
|-- install.bat
|-- uninstall.bat
|-- ... your customized files ...
--- install.bat ---
cd /D %~dp0
xcopy /Y /F /I ..\* "%XXE_ADDON%\XXE-local"
-------------------
--- uninstall.bat ---
cd /D %~dp0
rd /S /Q "%XXE_ADDON%\XXE-local"
---------------------
In the explorer windows, navigate to your XXE-local directory, and just
double click on "install.bat" or "unistall.bat".
WARNING: Check that the "XXE-local" directory name is not already used
for anything else. Chose a different name, if necessary.
Hope this helps.
--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado