On 03/10/2006 Volker Christian Behr wrote: > > > For some other installations/distributions I depend on the version > > > number being part of the config file.... > > > > could you explain in which situations a version number in the config is > > required? > > Anytime people do not use the pre-packaged versions (i.e. Debian > packages, rpms and so on) but compile and install from the sources. They > tend to forget to update the configuration along with binary. So I have > to check each config-file they send to me by comparing with my sources > whether it matches the version they are using and they cannot check it > by themselves easily. This is - as I had to learn the hard way - a lot > of extra work when debugging installation issues.
sounds reasonable. i suggest that the debian maintainer (i guess you are upstrem) strips the version line from the config file at build time. something like the following should work in debian/rules: sed -e '/^# *cups-pdf.conf -- CUPS Backend Configuration/s/ (version [0-9a-zA-Z.]*, [0-9-]*)//g' extra/cups-pdf.conf you could even do the regex without limiting it to the first line: sed -e 's/ (version [0-9a-zA-Z.]*, [0-9-]*)//g' extra/cups-pdf.conf but the first one is better because it really only strips the first line containing '# *cups-pdf.conf -- CUPS Backend Configuration'. ... jonas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]