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

Re: Bug#36132: xftp: two app-defaults



Bleah.

Wouldn't it be better to put this code in one place, and have
the installation scripts just call it?

-- 
Raul

Josip Rodin <joy@cibalia.gkvk.hr> 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...
> 
> -- 
> enJoy -*/\*- http://jagor.srce.hr/~jrodin/
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-qa-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: