# N.B. the previous line should be blank. #++ # Name: # ast_dev # Purpose: # Create links to AST include files. # Type of Module: # Shell script. # Description: # This command creates (or removes) symbolic links in your current # directory which refer to the AST include files. It is provided so # that you may develop software which uses these files without having # to know where they reside. # Invocation: # ast_dev [option] # Arguments: # option # If no value is supplied for this argument, symbolic links to AST # include files (for both Fortran and C) are created in your current # directory. If the value ``remove'' is given, these links are # removed. Any other value results in an error. # Examples: # ast_dev # Creates links to the AST include files in your current directory. # ast_dev remove # Removes any links to the AST include files from your current # directory. # Copyright: # Copyright (C) 1997-2006 Council for the Central Laboratory of the Research Councils # Authors: # RFWS: R.F. Warren-Smith (STARLINK, RAL) # DSB: David S. Berry (STARLINK) # {enter_new_authors_here} # History: # 11-NOV-1996 (RFWS): # Original version. # 18-NOV-1997 (RFWS): # Adapted prologue for document extraction. # 13-JUN-2001 (DSB): # Added GRF_PAR. # {enter_changes_here} # Bugs: # {note_any_bugs_here} #-- # Implementation Notes: # The pathname of the installation include directory (e.g. /star/include) # must be edited into this script when it is installed. This is normally # done by the makefile. # Interpret command line. case "${1}" in # No arguments: create appropriate links. '') LINK INSTALL_INC/ast.h ast.h LINK INSTALL_INC/ast_par AST_PAR LINK INSTALL_INC/ast_err AST_ERR LINK INSTALL_INC/grf_par GRF_PAR ;; # Argument is "remove": delete links. remove) rm -f ast.h AST_PAR AST_ERR GRF_PAR ;; # Any other argument is invalid: report an error. *) echo "ast_dev: invalid argument \"${1}\" given" >&2 exit 1 ;; esac # End of script.