summaryrefslogtreecommitdiffstats
path: root/ast/ast_dev
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-01-09 19:06:55 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-01-09 19:06:55 (GMT)
commit01e0ebfe59d9028b0246ec4a549bd7528ada94eb (patch)
treea6c5b54db03177a1c8f3e7fb531990dfbc7bae39 /ast/ast_dev
parentd64cf9c0bd23e752867b149be636d1bbd4501cf4 (diff)
downloadblt-01e0ebfe59d9028b0246ec4a549bd7528ada94eb.zip
blt-01e0ebfe59d9028b0246ec4a549bd7528ada94eb.tar.gz
blt-01e0ebfe59d9028b0246ec4a549bd7528ada94eb.tar.bz2
update ast 8.6.2
Diffstat (limited to 'ast/ast_dev')
-rw-r--r--ast/ast_dev86
1 files changed, 86 insertions, 0 deletions
diff --git a/ast/ast_dev b/ast/ast_dev
new file mode 100644
index 0000000..a073e9a
--- /dev/null
+++ b/ast/ast_dev
@@ -0,0 +1,86 @@
+
+# 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.