The vbs tools - vbs_ls, vbs_rm, vbs_fs - for listing, removing and mounting vbs and Mark6 format scattered VLBI recordings on FlexBuff and Mark6 systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

64 lines
1.4 KiB

#!/bin/sh
# script to 'configure' the vbs_fs utilities
DFLT_INSTALLDIR=/usr/local
INSTALLDIR=
usage() {
cat << USAGE
Usage: ${0} [-h] [--prefix IDIR]
Configures the vbs_fs utilities (vbs_fs, vbs_ls, vbs_rm) installation
directory. Future versions may support more options.
-h, --help print this message and exit succesfully
--prefix DIR, --prefix=DIR install vbs_ls, vbs_rm and vbs_ls in DIR/bin;
the default is ${DFLT_INSTALLDIR}
USAGE
}
ac_prev=
for argv; do
if [ ! -z "${ac_prev}" ]; then
eval "${ac_prev}=${argv}"
ac_prev=
continue
fi
case ${argv} in
--help)
usage
exit 0
;;
-h)
usage
exit 0
;;
--prefix=*)
INSTALLDIR=`echo ${argv} | sed 's/--prefix=//'`
;;
--prefix)
ac_prev="INSTALLDIR"
;;
*)
echo "Unsupported option: ${argv}"
exit 1
;;
esac
done
if [ -z "${INSTALLDIR}" ]; then
INSTALLDIR=${DFLT_INSTALLDIR}
fi
# Now create the new Makefile
sed 's:@@DESTDIR@@:'${INSTALLDIR}':;' Makefile.in > Makefile
cat << USAGE
Configuration succesful.
You can now type:
$> make
or
$> make install
to build the FUSE file system and utilities or/and install them in ${INSTALLDIR}