Added client work scripts
[clearscm.git] / clients / HP / bin / lsproduct
1 #!/bin/ksh
2 ################################################################################
3 #
4 # File:         lsproduct
5 # RCS:          $Header: lsproduct,v 1.1 96/07/24 04:01:51 defaria Exp $
6 # Description:  Lists products for a 10.x machine
7 # Author:       Andrew DeFaria, California Language Labs
8 # Created:      Wed Jul 24 04:00:36 PDT 1996
9 # Modified:
10 # Language:     Korn Shell
11 #
12 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
13 #
14 ################################################################################
15 # First source the appserver script
16 if [ -x /app/appserver ]; then
17   . /app/appserver
18 fi
19
20 if [ $# -eq 0 ]; then
21   print -u2 "All products on $(uname -n):"
22   /usr/sbin/swlist -l product
23 else
24   /usr/sbin/swlist -l product "$@"
25 fi