#!/bin/bash

# ------------------------------------------------------------
# RPC Project :
# RPC_version : return the RPC version of the software
# works without argument
# P. Robert, LPP, 2011-03-30
# ------------------------------------------------------------
Narg=0

if( (test $# = 1 ) && (test $1 = -h ) ) ; then hh=1 ; else hh=0 ; fi

if test $# != $Narg || test $hh = 1
   then
   echo "$appli : return RPC version"
   echo "$appli   require $Narg argument(s)"
   echo ""
   if test $hh = 1 ; then exit 0 ; fi
   echo "$appli36 : *** ERROR ! Command aborted." >&2
   exit 1
fi

version=`basename $RPC_DIR`
echo $version
