On Mon, 22 May 2000, Stefan Troeger wrote: st> Hi, st> st> On Sun, May 21 2000 at 22:03 -0700, S.Toms wrote: st> st> > Ok, I need some of you package building gurus, I'm building an st> > apsfilter-5.4.2 package, based on the actual apsfilter not the one one st> > created by SuSE. Anyway, during the configuration of apsfilter itself st> > using the SETUP script, the man pages are installed. So what I'm trying to st> > do is create a postuninstall script that will check for the variations of st> > the manpages that can be installed and have it uninstall them if they st> > exist. The script is the easy part, but how would I use it as a st> > postuninstall script as I see no way to add it to the package without st> > adding it to the %files section itself, but that just deletes the file st> > during an uninstall which nolonger makes the file available to be run as a st> > postuninstall. st> > Any ideas? st> st> I'm no expert at this, but what about including the contents of st> the script in the spec file's %postun section (without the st> #!/bin/sh line)? That way you don't have a separate script. st> That was my first attempt, it errored out bigtime like it didn't understand what I was doing. I get the following results with and without the !/bin/sh statement. Removing package aps-5.4.2-2 execution of script failed <heres the script> #!/bin/sh for MANDIR in /usr/man \ /usr/share/man \ /usr/local/man \ /usr/local/share/man ; do for FILE in apsfilter.1 \ apsfilterrc.5 \ filtersetup.8 ; do test -f $MANDIR/man1/$FILE.gz && rm -f $MANDIR/man1/$FILE.gz test -f $MANDIR/man5/$FILE.gz && rm -f $MANDIR/man5/$FILE.gz test -f $MANDIR/man8/$FILE.gz && rm -f $MANDIR/man8/$FILE.gz done done works fine by itself, in there it doesn't. st> Ciao, st> Stefan st> st> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/