Path: utzoo!utgpu!watmath!watdragon!jmsellens From: jmsellens@watdragon.waterloo.edu (John M. Sellens) Newsgroups: uw.mfcf.people Subject: Re: where to place commands that straddle two packages Message-ID: <16745@watdragon.waterloo.edu> Date: 27 Sep 89 20:39:39 GMT References: <11657@watcgl.waterloo.edu> Reply-To: jmsellens@watdragon.waterloo.edu (John M. Sellens) Distribution: uw Organization: U. of Waterloo, Ontario Lines: 29 In article <11657@watcgl.waterloo.edu> lindsay@watnext.waterloo.edu writes: >From: Lindsay Patten> >What is the proper place to put a command that is part of/depends on >two packages. We have a command called imxv that is an imtool but >is used to display under X10. We now have an X11 version. > >Should we > 1) have two commands in the im package (requires new different names) > 2) have a seperate package (large hassle) > 3) put a command in each of the x packages (ask to...) > 4) something else imxv is not part of either x10 or x11 so it must be part of some PAMI originated package. You could have a separte package for each called something like x10,imxv and x11,imxv - but that's kind of annoying. You could have 3 commands in your pami package - imxv.x10 imxv.x11 and imxv. imxv is a shell script that does something like: #!/bin/sh # warning this won't work exactly, but you get the idea switch `showpath findfirst=xterm` *11*) exec imxv.x11 args ;; *10*) exec imxv.x10 args ;; *) echo I don't know what kind of X you want .....