You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
837 B
Tcsh
24 lines
837 B
Tcsh
|
1 month ago
|
#
|
||
|
|
# Copyright (c) 1991-2024 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
|
||
|
|
# See LICENSE.TXT file for copying and redistribution conditions.
|
||
|
|
#
|
||
|
|
# This script creates an alias for each GMT module which prepends the module
|
||
|
|
# name with "gmt". For example: alias psxy "gmt psxy"
|
||
|
|
#
|
||
|
|
# Include this file in your GMT (t)csh script or on the command line with:
|
||
|
|
# source `gmt --show-sharedir`/tools/gmt_aliases.csh
|
||
|
|
# If the GMT executable is not in the search path, set an extra alias:
|
||
|
|
# alias gmt path/to/gmt
|
||
|
|
|
||
|
|
if (`command -v gmt` == "") then
|
||
|
|
echo 'Error: gmt is not found in your search PATH.'
|
||
|
|
exit 1
|
||
|
|
endif
|
||
|
|
|
||
|
|
set gmt_modules = (`gmt --show-classic`)
|
||
|
|
set compat_modules = (minmax gmtstitch gmtdp grdreformat ps2raster originator)
|
||
|
|
|
||
|
|
foreach module ( $gmt_modules $compat_modules )
|
||
|
|
eval 'alias $module "gmt $module"'
|
||
|
|
end
|