Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

invalidate_modules.sh 619 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  1. #
  2. # Copyright (c) 1991-2020 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
  3. # See LICENSE.TXT file for copying and redistribution conditions.
  4. #
  5. # This script creates a function for each GMT module which invalidates
  6. # direct module call. This is used to make sure test scripts properly
  7. # prefix modules with "gmt", which is needed to make sure that the
  8. # shell does not execute modules from PATH but instead uses the gmt
  9. # executable from the build dir.
  10. #
  11. gmt_modules=$(gmt --show-classic)
  12. for module in ${gmt_modules}; do
  13. eval "function ${module} () { false; }"
  14. eval "export -f ${module}"
  15. done
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...