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

Re: Intention to re-write /usr/sbin/install-info



On Mon, 1 Sep 1997, Mark Baker wrote:

> As I understand it theirs came first, but was very limited and not
> suitable for our needs. I don't know why we didn't make the interface
> backwards compatible though.

That would make things easier wouldn't it.

> That doesn't work, because install-info is called from the prerm scripts
> of many packages, and you can't expect all our users to upgrade within a
> month.

And I'm guessing these won't work with the GNU version.  Then how about
this, make a smarter script that checks for version specific flags and
calls the appropriate version.  A quick grep shows that they are mostly
using --quiet and --remove, so when these flags are seen (and I guess
some others, I don't have gnu's install-info to see the differences), use
/usr/sbin/dinstall-info, otherwise, use /usr/bin/install-info.  (Remember
the script is at /usr/sbin/install-info.)

This does feel like a hack though, so a better idea is more than welcome.
Thanks for pointing out my flaw Mark.

Script is below my sig.  Comments?
Brandon

P.S. I don't know the specific differences between the two, so the to of
the gnu install-info man page would be helpful.

-----
Brandon Mitchell                         E-mail: bhmit1@mail.wm.edu
  Homepage: http://www.geocities.com/SiliconValley/7877/home.html
                  PGP: finger -l bhmit1@cs.wm.edu                 
"We all know Linux is great...it does infinite loops in 5 seconds."
	--Linus Torvalds


#!/bin/sh
# By Brandon Mitchell
# Note, not actually tested

DEBIAN="NO"

for i in $*; do
  case $i in
  --remove) DEBIAN="YES"; break;;
# other debian specific options

  esac
done

if [ $DEBIAN = "YES" ]; then
  /usr/sbin/dinstall-info $*
else
  /usr/bin/install-info
fi




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: