
#  N.B. the previous line should be blank.
#+
#  Name:
#     hds_dev

#  Purpose:
#     Create links to HDS include files.

#  Type of Module:
#     Shell script.

#  Description:
#     This script sets up (or removes) symbolic links in the current
#     working directory which refer to HDS public include files. It
#     exists to allow source code which contains references to the
#     standard public HDS include files to be compiled without having
#     to know where these files actually reside.

#  Invocation:
#     hds_dev
#        Sets up links for all ths HDS public include files.
#     hds_dev remove
#        Removes the links previously set up.

#  Notes:
#     The command for creating a symbolic link (LINK) and the path name
#     of the installation include directory (INSTALL_INC) must be edited
#     into this script when it is installed.

#  Copyright:
#     Copyright (C) 1995 Central Laboratory of the Research Councils

#  Authors:
#     RFWS: R.F. Warren-Smith (Starlink, RAL)
#     {enter_new_authors_here}

#  History:
#     17-DEC-1992 (RFWS):
#     	 Original version.
#     28-JUN-1995 (RFWS):
#        Allow the command for creating a link to be edited into this script
#        at installation time.
#     {enter_changes_here}

#  Bugs:
#     {note_any_bugs_here}

#-

#.

#  If no parameters were given, then create the required links.
      if test "$*" = ""; then
         LINK INSTALL_INC/cmp_err CMP_ERR
         LINK INSTALL_INC/dat_err DAT_ERR
         LINK INSTALL_INC/dat_par DAT_PAR

#  If "remove" was the only parameter, then remove the links.
      elif test "$*" = "remove"; then
         rm CMP_ERR
         rm DAT_ERR
         rm DAT_PAR

#  If the parameters were not recognised, then report an error.
      else
         echo "hds_dev: invalid option \"$*\"" >&2
         exit 1
      fi

#  End of script.
      exit 0
