On Thu, 13 Mar 2003, Kuba Ober wrote: > > Some files, typically configuration files, are slightly different on > > different machines. Mostly it's file paths, referring to for instance: > > > > ~/.something/aFile > > > > The problem is that '~' is different on the different accounts... > > and the configuration files don't understand '~' or '$HOME' > > (LyX doesn't understand this either, but I'm going to fix that someday). > > That needs to be handled during the build, just like you handle say your > program linking with different libraries. > > Just generate proper substitutions during the build time -- you build anyway, > so it's a good time to do other locally-dependent stuff.
I'm thinking about a different kind of configuration file here... for instance, .lyx/preferences or .opera/opera6.ini, .netscape/preferences.js, .ymessenger/preferences, .xine/config and so on. Maybe I wasn't clear on this.. So basically these files are created and generally modified by the application, and I want to "robustly" maintain similar settings on my different accounts. A typical example is that I want the same keyboard shortcuts for my window-manager on the different machines... without having to add them manually each time. The idea "from" Lars about templates + sed could be made to work for me, but I was hoping that someone else had already solved the problem. > Make sure you sync the clocks on all machines. Run an ntp daemon on the > server, put it in broadcast mode, and install K995 on windows machines. They > listen to the broadcasts and adjust the clock. The clock on the Windows machine was correct... but Windows (NT) couldn't talk properly with Samba or something... (this was several years ago) Now we're using AFS (i.e. automatic clock synchronization), but ircc I got this problems in this case too.. and this time it was even worse since the files were bigger and AFS is slower. I blame the "make" thing... it's MATLAB's Stateflow toolbox that can't handle it properly. AFS on Windows is too sluggish for running compilations over it anyway, so we have to check out stuff locally. I'll probably look more on Aegis when I get some time though... CVS has some annoying limitations, and maybe I won't have to use windoze when I'm finished :) Thanks for mentioning Aegis! /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Design http://www.md.kth.se