#!/bin/sh # # prowhich - Unix which command for Progress # # Created by Varacom Pty Ltd - http://www.varacom.com.au/ # This header, and the license agreement must remain intact. # # IMPORTANT: Please read the Varacom Open-source Software License # Agreement at the bottom of this file BEFORE using it. # # Usage example: # # $ pwd # /home/smp # $ prowhich custmaint.p # /usr1/source/custmait.p # $ vi `prowhich custmaint.p` # ... # # Modification History # # Code Who When What # ------- ------- -------- ------------------------------------------------ # 1.0.0 smp 08/10/97 Created # # IFS=:, for Dir in $PROPATH do if [ -f ${Dir}/$1 ] then echo ${Dir}/$1 exit 0 fi done exit 1 ################################################################################ # # Varacom Open-source Software License Agreement. # # This software is Copyright © 1995-2000 by Varacom Pty Ltd. # http://www.varacom.com.au/ # # BY OPENING, INSTALLING, OR DISTRIBUTING ANY PORTION OF THESE FILES, # REFERRED HEREIN AS THE VARACOM SOFTWARE, YOU AGREE TO BE BOUND TO # THE FOLLOWING TERMS AND CONDITIONS: # # 1. You must have a valid Progress license to use the Varacom # Software. # # 2. You are granted a non-exclusive right to use the Varacom # Software. # # 3. For any purpose, commercial or otherwise except these purposes: # # o Sexually oriented, gambling related or racist. # # o Anything which would be illegal in the jurisdiction in # which the server resides. # # 4. You may modify the Varacom Software for your own use or use # within your company. # # 5. You may distribute the Varacom Software, with or without # modifications. # # 6. You must include this entire license agreement. # # 7. You must include all of the unmodified source code that you # received prior to modification. You must include the source # code to your modifications. Your modifications must be noted # in the code, or in the documentation. If you distribute the # Varacom Software as part of a commercial software product, you # must include in your license the following statement: # # "This product contains software created by Varacom Pty Ltd # - http://www.varacom.com.au/. Distribution of the Varacom # Software components is subject to the Varacom Open-source # Software License Agreement included." # # 8. You may charge a fee to distribute the Varacom Software, if # you wish. BUT, you may NOT restrict the further distribution # of the Varacom Software portions of your distribution. # # 9. Any modifications to the files distributed with the Varacom # Software that you distribute publicly become the property # of Varacom and are subject to this license. # # 10. You indemnify and hold harmless the contributors and # distributors of the Varacom Software from any and all damages, # either direct or consequential, related to the use, # installation, or distribution of the Varacom Software. # # YOU UNDERSTAND THAT THE VARACOM SOFTWARE AND ITS CONTRIBUTORS # EXPRESSLY DISCLAIM ANY AND ALL WARRANTIES, INCLUDING FITNESS # OF PURPOSE AND MERCHANTABILITY. # # If any section of this license agreement is found to be inapplicable # because of court decision then the remaining provisions will remain # in effect. # # Progress is a trademark of Progress Software Corporation. # ################################################################################