[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Protecting user changes in developer scripts handled files



Hi,
        
        There have been some threads about emacs start files, generally
 kept in directories like /etc/x?emacs{,20,21}/site-start.d/. These
 files are shipped in that place in the package itself, since the
 directories they are installed in depend on the flavours/versions of
 emacsen installed on the target machine.

	These start files are installed during the post installation
 configuration phase by the script:
      /usr/lib/emacsen-common/emacs-package-install $package_name.
 This, in turn, calls the script provided by the package, namely: 
     /usr/lib/emacsen-common/packages/install/$package_name 


	Debian policy states that configuration files, shipped in /etc
 (and this covers /etc/x?emacs{,20,21}/ dirs as well) *must* preserve
 user changes. Unfortunately, a number of packages, including all of
 mine, neglected to do so.

	This is a ``serious'' bug.

	Unwilling to create a narrow solution to this issue, I have
 created a general purpose script that can be used to provide conffile
 like handling that dpkg provides for conffiles for files managed by
 by maintainer scripts.

	The prompts also kinda look the same ;-)

	The script has a man page, emits usage information, can be
 made verbose, we can have copious debugging information if needed. It
 is written in bash.

	Comments?

	manoj

Attachment: updateConfFile
Description: Script to provide conffile like handling or files

Attachment: updateConfFile.1
Description: manual page for the script

-- 
 "I'm not a god, I was misquoted." Lister, Red Dwarf
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Reply to: