Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
2f949e8
Fix bugs in duplication of CPTs (#3625)
PaulWessel Jul 9, 2020
7fa2ee9
Fix sign-error on slope for RMA regression (#3634)
PaulWessel Jul 10, 2020
e91f477
Only make tiny adjustments to dx and dy if both need it (#3631) (#3638)
github-actions[bot] Jul 10, 2020
f047042
Remote update frequency (#3630) (#3639)
github-actions[bot] Jul 11, 2020
02f992b
Update example 47 and test regress_2 (#3647) (#3648)
github-actions[bot] Jul 12, 2020
a07de91
Confidence band on regression missed multipler of sigma (#3650) (#3651)
github-actions[bot] Jul 13, 2020
398909d
Calculate confidence band for -Er and -Eo (#3652) (#3655)
github-actions[bot] Jul 13, 2020
6ecf2b2
Failure of Cartesian clipping in plot -L+d (#3659) (#3660)
github-actions[bot] Jul 14, 2020
0af9407
Fix regression on Windows when trying to find if name is a SUBDATASET…
github-actions[bot] Jul 14, 2020
61a10fd
Wait with deleting font files until gmt end has completed (#3669) (#3…
github-actions[bot] Jul 18, 2020
5606bd6
Let psxy -T without -B skip the check for -R -J (#3672) (#3674)
github-actions[bot] Jul 18, 2020
6e0e571
if -R -J is given with -T then we must deal with them (#3675) (#3676)
github-actions[bot] Jul 18, 2020
d64d7ef
Turn outline on when a tile pen is found (#3679) (#3680)
github-actions[bot] Jul 18, 2020
7ddd775
More grdview fixes (#3681) (#3682)
github-actions[bot] Jul 18, 2020
a30d892
Do not access font when not set (#3683) (#3684)
github-actions[bot] Jul 19, 2020
6c76f6c
Place movie indicator f without any shifts (#3685) (#3686)
github-actions[bot] Jul 19, 2020
7e41fa3
Incomplete fix of grdsample required more work (#3688) (#3689)
github-actions[bot] Jul 19, 2020
6b96d6b
Add -skipfailures to the ogr2ogr -f convert command (#3690) (#3692)
github-actions[bot] Jul 20, 2020
745ee70
Add missing KEY for -N option (#3697) (#3699)
github-actions[bot] Jul 21, 2020
01aea26
Let grdcontour -N still be a oneliner (#3702) (#3704)
github-actions[bot] Jul 22, 2020
7979347
Fix typo introduced when new KEY was added. (#3705) (#3706)
github-actions[bot] Jul 22, 2020
a5bb95a
Let plotting of DCW in coast be done by plot (#3696) (#3707)
github-actions[bot] Jul 22, 2020
757e14d
Failed to requiest more memory in stair-step function (#3709) (#3710)
github-actions[bot] Jul 23, 2020
17851a2
Let GMT examine if the DCW file has a minimum version requirement (#3…
github-actions[bot] Jul 23, 2020
714f3e4
Improve grdseamount documentation (#3712) (#3714)
github-actions[bot] Jul 23, 2020
2adbed3
Address bug in grdseamount -M option (#3711) (#3713)
github-actions[bot] Jul 23, 2020
466154d
grdseamount must write grids even if no change for a time-step (#3715…
github-actions[bot] Jul 23, 2020
750ff85
Add instructions for "PATH too long" warning on Windows (#3720) (#3721)
github-actions[bot] Jul 24, 2020
03154f1
Fix gdal_info to gdal_translate in README (#3731) (#3732)
github-actions[bot] Jul 26, 2020
0e4e7ec
gmt_make_enum_dicts.sh needed some TLC (#3739)
seisman Jul 26, 2020
ff83229
More robust parsing to recognize -An or -A- (#3740) (#3741)
github-actions[bot] Jul 27, 2020
b4ed5f2
Only set geographic column formatting if in geographic mode (#3743) (…
github-actions[bot] Jul 27, 2020
26c3b00
Do not consider memory references remote files (#3745) (#3746)
github-actions[bot] Jul 27, 2020
9e21715
Only check once if file is remote or not (#3748) (#3749)
github-actions[bot] Jul 27, 2020
404381a
Make sure -L pen does not replace frame pen (#3751) (#3752)
github-actions[bot] Jul 27, 2020
c9ef330
Simplify contour arg parsing (#3753) (#3755)
github-actions[bot] Jul 28, 2020
1e4aab5
Put quotes when writing DIR_DATA to scripts (#3742) (#3757)
github-actions[bot] Jul 28, 2020
d902f55
Make sure a path is not a dir before saying we found a file (#3758) (…
github-actions[bot] Jul 28, 2020
c09b4f9
Make sure all test scripts have a set GMT_SESSION_NAME (#3762) (#3763)
github-actions[bot] Jul 29, 2020
ab18439
Better key verification (#3760) (#3764)
github-actions[bot] Jul 29, 2020
1ac3e52
Highlight the problems with toggling the grid registration (#3772) (#…
github-actions[bot] Jul 30, 2020
fe17ffb
Do not let the API object for the assembled grid live one (#3771) (#3…
seisman Jul 30, 2020
10042f9
Update GMT_IS_REFERENCE and GMT_IS_DUPLICATE to allow duplicating str…
github-actions[bot] Jul 30, 2020
7ebc53b
Let api_write_vector|matrix be aware of text (#3781) (#3782)
github-actions[bot] Jul 30, 2020
cc92c62
Testing api io vectors (#3783) (#3784)
github-actions[bot] Jul 30, 2020
d3c7d83
Implementing headers/trailing text for GMT_MATRIX i/o (#3786) (#3788)
github-actions[bot] Jul 31, 2020
4f22c21
Fix reST syntax for -l option (#3791) (#3792)
github-actions[bot] Jul 31, 2020
2def866
Deal with HAVE_GDAL (#3794) (#3795)
github-actions[bot] Jul 31, 2020
e16485e
Bump the documentation theme to sphinx_rtd_theme 0.5.0 (#3797) (#3801)
github-actions[bot] Aug 1, 2020
7ab6cc4
[Backport 6.1] Special attention when tile grids are passed to grdima…
seisman Aug 1, 2020
5805c24
Fix reST styling issue in #1605 (#3805) (#3807)
github-actions[bot] Aug 1, 2020
6dd8e1f
[Backport 6.1] File lock on CURL downloads (#3808)
seisman Aug 1, 2020
7f34541
Handle GMT_IS_DUPLICATE flat to GMT_Open_VirtualFile (#3809) (#3810)
github-actions[bot] Aug 1, 2020
2b0f9fe
Adding API test for plotting a global matrix/grid for different centr…
github-actions[bot] Aug 1, 2020
64b9caa
Modern keys fix (#3815) (#3816)
github-actions[bot] Aug 2, 2020
90a8789
Use the currrent default export type, not GMT_DOUBLE (#3817) (#3819)
github-actions[bot] Aug 2, 2020
74d4c2b
Migrate the "Code Check" CI job from Azure Pipelines to GitHub Action…
github-actions[bot] Aug 2, 2020
cb097d8
Try to get matrix as grid to work with changing central meridian (#38…
github-actions[bot] Aug 3, 2020
29136c2
Add reference to float matrix test for grdimage (#3823) (#3824)
github-actions[bot] Aug 3, 2020
9bc7edf
Wrap testapi programs for testing (#3826) (#3828)
github-actions[bot] Aug 3, 2020
5a4e8d4
Need to use masks to assign complex_mode variables (#3831) (#3832)
github-actions[bot] Aug 4, 2020
d7160b2
Two-array of modes (#3835) (#3836)
github-actions[bot] Aug 4, 2020
262f739
DEmote warning -E+r to DEBUG (#3833) (#3834)
github-actions[bot] Aug 4, 2020
a4fca92
Handle matrix via reference for grid input (#3829) (#3838)
github-actions[bot] Aug 4, 2020
9d85fce
Only turn on clobber background if it can work (#3839) (#3840)
github-actions[bot] Aug 4, 2020
97bfe88
Ignore classic history when modern session starts (#3851) (#3852)
github-actions[bot] Aug 6, 2020
695854f
Add special check for non-rotated global grids (#3849) (#3853)
github-actions[bot] Aug 6, 2020
f04ef13
fix a typo (#3855)
wangliang1989 Aug 6, 2020
0d86f13
Reading/writing a matrix from/to a grid file (#3848) (#3856)
seisman Aug 6, 2020
549247d
Needed to expact variable columns to deal with missing z (#3858) (#3859)
github-actions[bot] Aug 6, 2020
b323e9a
Let -R handle east < west for common cases (#3860) (#3862)
github-actions[bot] Aug 7, 2020
14eea1d
Clarify that pen colors can be specified in RGB hexadecimal (#3863) (…
github-actions[bot] Aug 7, 2020
c1a6d00
Move non-official GMT install instructions to wiki (#3865) (#3866)
github-actions[bot] Aug 7, 2020
8a60b4a
Wrap testapi_grid2matrix so that Windows test can find it (#3868) (#3…
github-actions[bot] Aug 7, 2020
9f9f696
UPdate -JP description in the Cookbook (#3871) (#3872)
github-actions[bot] Aug 7, 2020
a073e98
Ensure a duplicated grid via gmt_new_grid has the minimum padding req…
github-actions[bot] Aug 8, 2020
efd02b5
Make sure grdivew can access default CPT when a cpt is needed (#3874)…
github-actions[bot] Aug 8, 2020
f5f7ce6
Set z_hinge=0 is only +h is used (#3885) (#3886)
github-actions[bot] Aug 8, 2020
eadffd6
Simplify CI steps on Linux and macOS (#3878) (#3887)
github-actions[bot] Aug 8, 2020
2a58d0d
Add a CI job to compile GMT without optional dependencies (#3888) (#3…
github-actions[bot] Aug 8, 2020
8dfbdcf
Add gmt logo to the gmt logo man page (#3882) (#3893)
github-actions[bot] Aug 8, 2020
e0a1555
Add basic legend at top of man page (#3883) (#3892)
github-actions[bot] Aug 8, 2020
dc9e222
Better documentation of grid-registration switching (#3880) (#3891)
github-actions[bot] Aug 8, 2020
6709c27
Update colorbar_common.rst_ (#3881) (#3890)
github-actions[bot] Aug 8, 2020
af7a1a0
Fix warings of unused parameters (#3895)
seisman Aug 8, 2020
938e3ed
Improve the plot man page for symbols (#3896) (#3897)
github-actions[bot] Aug 9, 2020
03e3b1e
Vector doc improvement (#3899) (#3900)
github-actions[bot] Aug 9, 2020
9f4fd88
Let -U and PostScript comments use modern names if modern mode (#3903…
github-actions[bot] Aug 9, 2020
729a1a7
Fix growth.sh to be more like the one in master so it does not crash …
PaulWessel Aug 10, 2020
146d268
Clarify the difference between -Se and -SE (#3909) (#3910)
github-actions[bot] Aug 10, 2020
3d2e803
Accept deprecated CN.## numbers and look up corresponding codes (#391…
github-actions[bot] Aug 10, 2020
2444366
doc: Add the missing anchor to psconvert -Z option (#3913) (#3915)
github-actions[bot] Aug 11, 2020
b41ec24
Clarify -R for oblique -JO Mercator (#3917) (#3919)
github-actions[bot] Aug 11, 2020
3294a81
Test select.sh passes now (#3931) (#3933)
github-actions[bot] Aug 12, 2020
ea7a103
antwrap.sh now only failed because gridlines are now behind the plot …
github-actions[bot] Aug 12, 2020
eb78c75
The oneincshift.sh used to fail but now passes (#3934) (#3936)
github-actions[bot] Aug 12, 2020
003e786
Update buggy script with comments to clarify the problem (#3937) (#3938)
github-actions[bot] Aug 12, 2020
9da0862
Better recognition of pi-number (#3941) (#3943)
github-actions[bot] Aug 12, 2020
88e822e
doc: Fix the wrong description of -Bafg/afg (#3944) (#3945)
github-actions[bot] Aug 12, 2020
8f4bb35
Improve parsing of -G in mapproject (#3951) (#3953)
github-actions[bot] Aug 13, 2020
11c72a8
Ensure -qi only increments data record counters for data records (#39…
github-actions[bot] Aug 13, 2020
fee0453
Strengthen the -s option and fix a few issues (#3956) (#3957)
github-actions[bot] Aug 14, 2020
0e78506
Update CI caches (#3958) (#3959)
github-actions[bot] Aug 14, 2020
c46d4f9
Fix the description of -Rcode syntax (#3961) (#3962)
github-actions[bot] Aug 15, 2020
81bd8a2
Ignore a check if the axis is not annotated (#3964) (#3966)
github-actions[bot] Aug 15, 2020
4ca462f
typo fix (#3965)
wangliang1989 Aug 15, 2020
a855eda
Specify x-axis in sript (#3967) (#3968)
github-actions[bot] Aug 15, 2020
b67c28d
Fix ex22.bat (#3969)
Esteban82 Aug 15, 2020
8b389b1
Remove .grd suffix from remote earth_mask file (#3971) (#3972)
github-actions[bot] Aug 15, 2020
3bde386
Update PS files due to changes of remote grids (#3974) (#3975)
github-actions[bot] Aug 16, 2020
5e00a89
Simplify anim07 (#3977) (#3978)
github-actions[bot] Aug 16, 2020
30aa83a
Update ex22.rst (#3979)
Esteban82 Aug 16, 2020
d1d4e34
Update grdcyclic.ps due to changes of remote grids (#3981)
seisman Aug 16, 2020
724f905
Just ensure grdinfo of remote grid reports them as geographic (#3984)…
github-actions[bot] Aug 17, 2020
328678c
Let z-axis annotations be normal to axis as an option (#3985) (#3988)
github-actions[bot] Aug 17, 2020
62b4b6f
Revise 14 PS files after 3-D z-labels go horizontal by default (#3989…
github-actions[bot] Aug 18, 2020
9b29fc7
Fix a typo in coast documentation (#3994) (#3995)
github-actions[bot] Aug 18, 2020
efbcad3
Be more careful cleaning up after failed curl (#3996) (#3997)
github-actions[bot] Aug 18, 2020
33155ca
Simplify Curl operations (#3998) (#4000)
github-actions[bot] Aug 19, 2020
2f3bbc5
Improve the auto -B settings under modern mode (#4001) (#4002)
github-actions[bot] Aug 20, 2020
4dd0095
Update GMT caches for testings (#4004) (#4005)
github-actions[bot] Aug 20, 2020
7c5146d
Use 0.25p iinstead of default when describing pen thickness (#4006) (…
github-actions[bot] Aug 21, 2020
246ce6f
Fix statis reset (#4012) (#4013)
github-actions[bot] Aug 22, 2020
ecdf214
Use remote files in scripts and tests when possible (#4011) (#4015)
github-actions[bot] Aug 22, 2020
b0ec580
Update two PS files (#4017) (#4018)
github-actions[bot] Aug 22, 2020
dd7b0dd
Fix two typos (#4021) (#4023)
github-actions[bot] Aug 22, 2020
c3c6e76
Check for and if found, use strsignal (#4020) (#4022)
github-actions[bot] Aug 22, 2020
7ecbf85
Cannot allow +s +o modifiers for global remote grids (#4024) (#4026)
github-actions[bot] Aug 22, 2020
64439d6
Make ex05 use SI units (#4027) (#4028)
github-actions[bot] Aug 22, 2020
590f79b
No more exit calls in x2sys (#4029) (#4031)
github-actions[bot] Aug 23, 2020
ff36364
Avoid calling exit in spotter supplement (#4033) (#4035)
github-actions[bot] Aug 23, 2020
5893a46
Fix strtok_r (#4037) (#4038)
github-actions[bot] Aug 23, 2020
4527918
Make sure -Q is parsed before -T is parsed if logarithmic (#4025) (#4…
github-actions[bot] Aug 24, 2020
77af66c
Enable CI jobs on Debian 9, 10 and sid via dockers (#4049) (#4050)
github-actions[bot] Aug 25, 2020
de46545
No proj (#4056) (#4057)
github-actions[bot] Aug 26, 2020
84ae019
Add check to stop subplot if dimensions are not set (#4058) (#4059)
github-actions[bot] Aug 26, 2020
32ff21f
Fix strsignal(3) usage (#4060) (#4061)
seisman Aug 26, 2020
3fd8a2e
Need to include string.h for strsignal (#4062) (#4063)
github-actions[bot] Aug 26, 2020
3496fa4
Fix two resource leaks reported by cppcheck (#4064) (#4065)
seisman Aug 26, 2020
d900b38
Fix an error message (#4067) (#4069)
github-actions[bot] Aug 27, 2020
4c81e7b
Fix bug in parsing grdview -T (#4070) (#4071)
github-actions[bot] Aug 27, 2020
806e040
INitialize lon-lat nodes for non-GMT projections (#4072) (#4073)
github-actions[bot] Aug 27, 2020
d3aaa0d
Check if any points were given in gmt_geo_to_xy_line (#4074) (#4075)
github-actions[bot] Aug 27, 2020
0151e34
Fix a few comments in C codes (#4079) (#4080)
github-actions[bot] Aug 27, 2020
0576cc3
Fix an unintvar compilation error (#4076) (#4081)
github-actions[bot] Aug 28, 2020
f4412e5
Use current pen with color is changing (#4084) (#4086)
github-actions[bot] Aug 28, 2020
c4495d3
Better message when the Registry registerd ghostscript is not found. …
github-actions[bot] Aug 28, 2020
1a83393
Subplot auto-height needs -R -J (#4089) (#4091)
github-actions[bot] Aug 28, 2020
332c5e5
Fix shebang of a few bash scripts (#4090) (#4092)
github-actions[bot] Aug 28, 2020
9b87146
pssac: Use Cartesian projection by default unless -S is used (#4088) …
github-actions[bot] Aug 28, 2020
c16f433
ALso fix plot3d for variable pen and color via header and CPT (#4087)…
github-actions[bot] Aug 28, 2020
a1339ce
Not let API call exit (#4095) (#4096)
github-actions[bot] Aug 28, 2020
a58dfdf
Disallow ---version on module calls (#4097) (#4098)
github-actions[bot] Aug 28, 2020
1b19b0d
Fix the example in subplot manpage (#4100) (#4102)
github-actions[bot] Aug 28, 2020
80d5df9
Fix description of various -F option (#4099) (#4103)
github-actions[bot] Aug 28, 2020
32e131f
Remove exit from gmtlogo (#4104) (#4106)
github-actions[bot] Aug 28, 2020
b291951
Eliminate exit calls in grdfft and psconvert (#4105) (#4107)
github-actions[bot] Aug 28, 2020
16c346f
docs: Enable switching different versions (#4110) (#4111)
github-actions[bot] Aug 29, 2020
ed492df
Add snake lines as new test (#4113) (#4114)
github-actions[bot] Aug 29, 2020
6b28ef0
Adding test of relative Mercator region prior to change (#4115) (#4117)
github-actions[bot] Aug 29, 2020
a7dcd76
Allow composite character with two characters from different font/cha…
github-actions[bot] Aug 29, 2020
b82cfb9
Forgot -Du sets Standard+ (#4118) (#4119)
github-actions[bot] Aug 29, 2020
bb816c4
[backport-6.1] Fix issues in Mercator projection (#4120) (#4121)
seisman Aug 30, 2020
74aa516
Update GMT_fatline.ps (#4126) (#4128)
github-actions[bot] Aug 31, 2020
c49a896
Fix an unused-var warning (#4125) (#4127)
github-actions[bot] Aug 31, 2020
dd6b6ff
Make sure intensity subset matches tiled region if given (#4130) (#4132)
github-actions[bot] Aug 31, 2020
93ac039
Fix minor issue in sample1d doc file (#4134) (#4135)
github-actions[bot] Aug 31, 2020
af6b68e
Skip record if gmt_create_array() returns error and thus prevent cras…
github-actions[bot] Sep 1, 2020
e8b020c
Get ready for 6.1.1 release (#4142)
PaulWessel Sep 1, 2020
501c1ca
Improve the checklist (#4145) (#4146)
github-actions[bot] Sep 1, 2020
2fc548a
Addd 6.1.1 to changes.rst (#4144) (#4147)
github-actions[bot] Sep 1, 2020
60ab88b
Missing definition for Add_-h in two modules (#4148) (#4149)
seisman Sep 1, 2020
4d9bc24
Remove an unused var and let build-release scp the files (#4150) (#4151)
github-actions[bot] Sep 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 32 additions & 24 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ variables:

jobs:

- job:
displayName: 'Code Checker'

steps:
- bash: |
set -x -e
cd src
bash gmt_make_PSL_strings.sh
bash gmt_make_enum_dicts.sh
bash gmt_make_module_purpose.sh
cd ..
# check if any files are changed
if [ $(git ls-files -m) ]; then
git diff HEAD
exit 1
fi
displayName: Check if any C codes and headers need to be manually updated

# Lint Checker
- job:
displayName: 'Lint Checker'
Expand Down Expand Up @@ -67,7 +49,26 @@ jobs:
BUILD_DOCS: false
DEPLOY_DOCS: false
PACKAGE: false
TEST: false
RUN_TESTS: false

steps:
- template: ci/azure-pipelines-linux.yml

# Linux - Compile only (no GDAL et. al.)
########################################################################################
- job:
displayName: 'Linux | Compile only (GDAL et. al. excluded)'
condition: ne(variables['Build.Reason'], 'Schedule')

pool:
vmImage: 'ubuntu-18.04'

variables:
BUILD_DOCS: false
DEPLOY_DOCS: false
PACKAGE: false
RUN_TESTS: false
EXCLUDE_OPTIONAL: true

steps:
- template: ci/azure-pipelines-linux.yml
Expand All @@ -86,7 +87,7 @@ jobs:
BUILD_DOCS: true
DEPLOY_DOCS: true
PACKAGE: true
TEST: false
RUN_TESTS: false

steps:
- template: ci/azure-pipelines-linux.yml
Expand All @@ -104,7 +105,7 @@ jobs:
BUILD_DOCS: false
DEPLOY_DOCS: false
PACKAGE: false
TEST: true
RUN_TESTS: true

steps:
- template: ci/azure-pipelines-linux.yml
Expand All @@ -122,7 +123,7 @@ jobs:
BUILD_DOCS: false
DEPLOY_DOCS: false
PACKAGE: false
TEST: false
RUN_TESTS: false

steps:
- template: ci/azure-pipelines-mac.yml
Expand All @@ -140,7 +141,7 @@ jobs:
BUILD_DOCS: true
DEPLOY_DOCS: false
PACKAGE: true
TEST: false
RUN_TESTS: false

steps:
- template: ci/azure-pipelines-mac.yml
Expand All @@ -158,7 +159,7 @@ jobs:
BUILD_DOCS: false
DEPLOY_DOCS: false
PACKAGE: false
TEST: true
RUN_TESTS: true

steps:
- template: ci/azure-pipelines-mac.yml
Expand Down Expand Up @@ -240,6 +241,13 @@ jobs:
containerImage: ubuntu:16.04
Ubuntu1804: # CMake 3.10.2 + GNU 7.4.0
containerImage: ubuntu:18.04
Debian9: # CMake 3.7.2 + GNU 6.3.0
containerImage: debian:stretch
Debian10: # CMake 3.13.4 + GNU 8.3.0
containerImage: debian:buster
DebianSid: # CMake 3.16.3 + GNU 10.1.0
containerImage: debian:sid


container:
image: $[ variables['containerImage'] ]
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/release_checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ assignees: ''
- [ ] reserve a DOI on [zenodo](https://zenodo.org) (@PaulWessel)
- [ ] run `src/gmt_make_*.sh` to update some .c and .h files
- [ ] run `admin/gs_check.sh` to test if latest ghostscript version works
- [ ] update changelog
- [ ] update [changelog](/doc/rst/source/changes.rst)
- [ ] update INSTALL.md
- [ ] check if there are any warnings when build the documentation
- [ ] add one new entry in `doc/rst/_static/version_switch.js` if it's a minor release
- [ ] check/set values in `cmake/ConfigDefault.cmake`
- [ ] `GMT_VERSION_YEAR` is current year
- [ ] `GMT_PACKAGE_VERSION_*` is correctly set
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/code-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Workflow to validify the consistence of the codes

on:
push:
branches:
- master
- '[0-9]+.[0-9]+'
pull_request:

name: Code Validator

jobs:
code-validator:
name: Code Validator
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Check PSL_strings.h
run: |
cd src/
bash gmt_make_PSL_strings.sh
if [ $(git ls-files -m) ]; then git --no-pager diff HEAD; exit 1; fi
cd ..

- name: Check gmt_enum_dict.h
run: |
cd src/
bash gmt_make_enum_dicts.sh
if [ $(git ls-files -m) ]; then git --no-pager diff HEAD; exit 1; fi
cd ..

- name: Check module purposes
run: |
cd src/
bash gmt_make_module_purpose.sh
if [ $(git ls-files -m) ]; then git --no-pager diff HEAD; exit 1; fi
cd ..

- name: Check GMT version year
run: |
current_year=$(date +%Y)
gmt_version_year=$(grep GMT_VERSION_YEAR cmake/ConfigDefault.cmake | awk -F'"' '{print $2}')
if [ "$current_year" != "$gmt_version_year" ]; then exit 1; fi
99 changes: 33 additions & 66 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ In addition to the GMT installer, you also need to download and install
[GraphicsMagick](http://www.graphicsmagick.org/) if you want to create
animated GIFs.

**NOTE:**
At the installation step, you may get the warning message:

> Warning! Failed to add GMT to PATH. Please add the GMT bin path to PATH manually.

Usually it means your system variable **PATH** is already too long and the GMT
installer can't add its path to the variable. As it says, you need to ignore
the warning message, and then manually add the GMT bin path
(e.g., `C:\programs\gmt6`) to **PATH** after finishing the installation.
If you don't know how to manually modify **PATH**, just search Google for
"How to change windows path variable".

## macOS

### Application Bundle
Expand Down Expand Up @@ -136,7 +148,12 @@ These three GMT versions cannot live side by side.

### Fedora

GMT 6 packages are available for **Fedora 31 or newer**. Install it via:
**NOTE:** The Fedora official repository may provide an old GMT version.
If you need the latest GMT version, you can follow the instruction
["Install latest GMT on Fedora"](https://github.com/GenericMappingTools/gmt/wiki/Install-latest-GMT-on-Fedora)
in the wiki.

Install GMT via:

dnf install GMT dcw-gmt gshhg-gmt-nc4 gshhg-gmt-nc4-full gshhg-gmt-nc4-high ghostscript

Expand All @@ -148,58 +165,35 @@ You may also install other optional dependencies for more capabilities within GM
### RHEL/CentOS

GMT binary packages are available from Extra Packages for Enterprise Linux (EPEL).
However, EPEL is far behind packaging a recent version.
We provide [the GMT official RPM repository](https://copr.fedorainfracloud.org/coprs/genericmappingtools/gmt)
to allow RHEL/CentOS users access the latest GMT releases in an easy way.

For RHEL/CentOS, run:

# install epel-release
yum install epel-release

# Enable the PowerTools repository (RHEL/CentOS 8 only)
yum config-manager --set-enabled PowerTools
**NOTE:** The EPEL repository may provide an old GMT version.
If you need the latest GMT version, you can follow the instruction
["Install latest GMT on RHEL/CentOS"](https://github.com/GenericMappingTools/gmt/wiki/Install-latest-GMT-on-RHEL-CentOS)
in the wiki.

# enable the RPM repository (RHEL/CentOS 7 or 8 ONLY)
yum install yum-plugin-copr
yum copr enable genericmappingtools/gmt
Install GMT via:

# enable the RPM repository (RHEL/CentOS 6 ONLY)
wget https://copr.fedorainfracloud.org/coprs/genericmappingtools/gmt/repo/epel-6/genericmappingtools-gmt-epel-6.repo -O /etc/yum.repos.d/genericmappingtools-gmt-epel-6.repo

# Install GMT
yum install gmt

# Update to the latest version if available
yum update gmt
yum install epel-release
yum install GMT dcw-gmt gshhg-gmt-nc4 gshhg-gmt-nc4-full gshhg-gmt-nc4-high ghostscript

You may also install other optional dependencies for more capabilities within GMT:

yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-`rpm -E %rhel`.noarch.rpm
yum install GraphicsMagick ffmpeg gdal

**Note**:
If you already installed the GMT packages provided by EPEL,
you have to uninstall them before installing the new GMT packages provided
by the official GMT repository. You can uninstall the older packages by:

yum remove GMT dcw-gmt gshhg-gmt-nc4 gshhg-gmt-nc4-full gshhg-gmt-nc4-high
yum install ffmpeg

### Ubuntu/Debian

GMT 6 packages are available for Ubuntu 20.04 (Focal Fossa) and Debian 11 (Bullseye/Testing).
Install it via

sudo apt-get install gmt gmt-dcw gmt-gshhg

**Note** that the above command will install GMT 5.4 for older Ubuntu/Debian versions,
e.g. Ubuntu 18.04 Bionic Beaver and Debian 10 Buster/Stable.
**NOTE:** The Ubuntu/Debian official repositories may provide old GMT versions.
If you want the latest GMT 6.x release, your best bet then is to
[build the latest release from source](BUILDING.md).
Keep in mind that Ubuntu 16.04 LTS for mysterious reasons does not
include the [supplemental modules](https://docs.generic-mapping-tools.org/latest/modules.html#supplemental-modules),
but you can obtain them by [building from source](BUILDING.md) or upgrading to Ubuntu 18.04 LTS (or newer).

Install GMT via:

sudo apt-get install gmt gmt-dcw gmt-gshhg

Install other GMT dependencies (some are optional) via:

# required
Expand All @@ -209,35 +203,8 @@ Install other GMT dependencies (some are optional) via:

### ArchLinux

It's easier to manage installed content and dependencies than directly
building and manually `make install` in ArchLinux.

# Full update system packages first
sudo pacman -Syu

# Install tools for building AUR packages
sudo pacman -S base-devel

# Use git command to clone non-official AUR repo of gmt
# Here are two options. **You just have to clone one of them:**
# If you encounter some problems in those repo,
# you can report to the authors first, or choose another one to clone
git clone https://aur.archlinux.org/gmt.git

# alternative repo, for testing stable/rc release in version 6.x branch
git clone https://aur.archlinux.org/gmt6.git gmt

# Optional recommended packages
git clone https://aur.archlinux.org/gmt-coast.git
git clone https://aur.archlinux.org/gmt-cpt-city.git
git clone https://aur.archlinux.org/gmt-dcw.git

# use makepkg to build packages and use pacman to install
cd gmt
makepkg -sc
sudo pacman -U *.pkg.tar.xz

**Note**: Binary packages of gmt are still not available in [ArchlinuxCN repo](https://www.archlinuxcn.org/archlinux-cn-repo-and-mirror) yet.
ArchLinux official repository doesn't provide GMT packages, but AUR (ArchLinux User Repository) does.
You can follow the [Install latest GMT on ArchLinux](https://github.com/GenericMappingTools/gmt/wiki/Install-latest-GMT-on-ArchLinux) in the wiki.

## Cross Platform Install Instructions

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ GMT may be linked with these libraries (* means optional):
[Linear Algebra Package (LAPACK*)](http://www.netlib.org/lapack/),
[Basic Linear Algebra Subprograms (BLAS*)](http://www.netlib.org/blas/), and
[ZLIB*](https://www.zlib.net). GMT may call these executables:
GDAL (ogr2ogr, gdal_info), [Ghostscript](https://www.ghostscript.com),
GDAL (ogr2ogr, gdal_translate), [Ghostscript](https://www.ghostscript.com),
[FFmpeg](https://www.ffmpeg.org),
[xdg-open](https://www.freedesktop.org/wiki/Software/xdg-utils/), and
[GraphicsMagick](http://www.graphicsmagick.org).
4 changes: 3 additions & 1 deletion admin/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,6 @@ echo "build-release.sh: Place gmt-${Version}-src.tar.* on the ftp site" >&2
if [ -f gmt-${Version}-darwin-x86_64.dmg ]; then
echo "build-release.sh: Place gmt-${Version}-darwin-x86_64.dmg on the ftp site" >&2
fi
#scp gmt-${Version}-darwin-x86_64.dmg gmt-${Version}-src.tar.* ftp:/export/ftp1/ftp/pub/pwessel/release
if [ "${USER}" = "pwessel" ]; then # Place file in pwessel SOEST ftp release directory
scp gmt-${Version}-darwin-x86_64.dmg gmt-${Version}-src.tar.* ftp.soest.hawaii.edu:/export/ftp1/ftp/pub/pwessel/release
fi
Loading