#!/bin/sh
#
# $Id: auversion,v 1.12 2003/02/24 05:31:14 yamamuro Exp $
#

HEAD="head -4"
LC_TIME=C ; export LC_TIME

if [ "X-help" = X$1 ] ; then
    echo "Usage:"
    echo "    `basename $0`"
    exit 0
fi

AUBINS=" \
  auunitref      auunitadd      auunitchg      auunitdel      aupasswd       \
  auuidadd       auuidchg       auuiddel       aupwdchg       aulogin        \
  aulogout       auchkuid       aurev          audrive        aucache        \
  ausupply       aucrlan        aurgref        aurgadd        aurgexp        \
  aurgdel        auluref        auluadd        auformat       auformatst     \
  auluexp        auludel        auluchg        auturbolu      aumrcfdev      \
  aumrcfluc      ausysparam     auportop       aurtc          autarget       \
  auontarget     aulan          ausync         auspare        audrecopt      \
  auonlineverify  aufibre       aufibre1       aumicro        ausnmp         \
  aureboot       austatistics   auperform      auinfomsg      aumail         \
  auunitmsg      auextprog      auerroralert   auopt          ausyspout      \
  auconfigout    ausyspset      auconfigset    aulumrg        aumluref       \
  aumludiv       auman          aucmddev       aurmtpath      auhgwwn        \
  auhgopt        auhgmap        auunitid       auhgout        auhgset        \
  auhgdef        auonsysprm     auluinvalidate aulurestoration               \
  aulureallocate "

for AB in $AUBINS
do
    ( $AB -help ) > /dev/null 2>&1
    if [ 0 -eq $? ] ; then
	echo $AB
	$AB -help | $HEAD
    else
	if [ -f $AB ] ; then
	    echo $AB
	    ./${AB} -help | $HEAD
	fi
    fi
done

