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.
 
 
 

65 lines
1.4 KiB

  1. #!/bin/sh
  2. # script to 'configure' the vbs_fs utilities
  3. DFLT_INSTALLDIR=/usr/local
  4. INSTALLDIR=
  5. usage() {
  6. cat << USAGE
  7. Usage: ${0} [-h] [--prefix IDIR]
  8. Configures the vbs_fs utilities (vbs_fs, vbs_ls, vbs_rm) installation
  9. directory. Future versions may support more options.
  10. -h, --help print this message and exit succesfully
  11. --prefix DIR, --prefix=DIR install vbs_ls, vbs_rm and vbs_ls in DIR/bin;
  12. the default is ${DFLT_INSTALLDIR}
  13. USAGE
  14. }
  15. ac_prev=
  16. for argv; do
  17. if [ ! -z "${ac_prev}" ]; then
  18. eval "${ac_prev}=${argv}"
  19. ac_prev=
  20. continue
  21. fi
  22. case ${argv} in
  23. --help)
  24. usage
  25. exit 0
  26. ;;
  27. -h)
  28. usage
  29. exit 0
  30. ;;
  31. --prefix=*)
  32. INSTALLDIR=`echo ${argv} | sed 's/--prefix=//'`
  33. ;;
  34. --prefix)
  35. ac_prev="INSTALLDIR"
  36. ;;
  37. *)
  38. echo "Unsupported option: ${argv}"
  39. exit 1
  40. ;;
  41. esac
  42. done
  43. if [ -z "${INSTALLDIR}" ]; then
  44. INSTALLDIR=${DFLT_INSTALLDIR}
  45. fi
  46. # Now create the new Makefile
  47. sed 's:@@DESTDIR@@:'${INSTALLDIR}':;' Makefile.in > Makefile
  48. cat << USAGE
  49. Configuration succesful.
  50. You can now type:
  51. $> make
  52. or
  53. $> make install
  54. to build the FUSE file system and utilities or/and install them in ${INSTALLDIR}