Raul Miller wrote: > Bleah. > > Wouldn't it be better to put this code in one place, and have > the installation scripts just call it?
Yes. I could think about something like: update-app-defaults [options] basename prg-name -b base directory for app-defaults file if not /etc/X11 [or another standard directory] -f force a change -v be verbose So it would be called like: update-app-defaults -b /usr/X11R6/lib/X11/app-defaults \ Fig X-Fig Joy, can you provide this kind of thing and discuss with Branden to include it in the next XFree packages? > -- > Raul > > Josip Rodin <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 16, 1999 at 10:40:08AM +0200, Martin Schulze wrote: > > > I wonder if it would be possible that all these questions may be > > > reduced to _one_ by touching either /etc/X11/app-defaults.colour > > > or /etc/X11/app-defaults.monochrome when the user has choosen > > > one of the two. > > > > I like this one better. So, people with app-defaults files should > > be instructed to put something like this in their postinst (replace > > $PROGRAM with the real name): > > > > if [ ! -e /etc/X11/app-defaults.mono -a ! -e /etc/X11/app-defaults.color ]; > > then > > echo -n "Do you wish to use color, or monochrome app-defaults files? > > [C/m]"; read WHICH > > case $WHICH in > > [mM]*) touch /etc/X11/app-defaults.mono ;; > > *) touch /etc/X11/app-defaults.color ;; > > esac > > > > if [ -e /etc/X11/app-defaults.color ]; then > > echo "$PROGRAM will use color app-defaults file." > > ln -sf $PROGRAM-color /usr/X11R6/lib/X11/app-defaults/$PROGRAM > > elif [ -e /etc/X11/app-defaults.mono ]; then > > echo "$PROGRAM will use monochrome app-defaults file." > > ln -sf $PROGRAM-mono /usr/X11R6/lib/X11/app-defaults/$PROGRAM > > fi > > > > Although there may be something wrong with this script... Regards, Joey -- A mathematician is a machine for converting coffee into theorems. Please always Cc to me when replying to me on the lists.