|
From: <las...@Su...> - 2001-06-28 13:20:08
|
> > There would be one more needed: > > > > 4. Update the url in a set of OMF files in the same subdirectory > > structure with urls from docs specified by a directory only. Both the > > base filename (2) and the relative filename (3) should work in this > > case. > > This would be the preferred way to do things. > Hmm... I think it would be helpful to figure out a little more about what > information we have access to for passing to the post-install script. We > can either have the OMF file originally contain the full non-relocated > path. Or, it could have the part of the path without $prefix and then > sk-update-url could just add the prefix. Or, ... > > I think the best solution would require that the post-install script have > access to the unrelocated and relocated prefixes. Then we would do > everything exactly as we did before and if somebody wants to make it > relocatable they just add a post-install script which basically just does > a search and replace on the prefix strings. We should have access to the target root directory to be used in order to build the parameters of scrollkeeper-update-url. On further thinking maybe we are overdoing the relocation support. What about the following: - The preinstall script is either used to set an absolute path or a relative one to $prefix as url - If an absolute path is set then that is the path, no postinstall change is done - If a relative path is used than it should form a correct full path together with $prefix This would be the internal algorithm and the only interface provided for postinstall url update would be: scrollkeeper-update-url $omf_dir $prefix This sounds simple so maybe I missed something, but anyway what do you think? Is there any situation this wouldn't cover? We could even get rid of preinstall if we follow this as those absolute and relative paths mentioned above could be hardcoded in the OMF file. Only that if the developer wants to change the general directory layout of the project they will have to edit the OMF files while if scrollkeeper-preinstall is still there they are OK with editing Makefile.am only. Laszlo |