ea9102d97f
Generic Mapping Tools
25 lines
1 KiB
Text
25 lines
1 KiB
Text
$NetBSD: patch-ag,v 1.1.1.1 2000/11/26 22:48:17 jtb Exp $
|
|
|
|
--- src/makecpt.c.orig Tue Oct 24 17:24:39 2000
|
|
+++ src/makecpt.c
|
|
@@ -48,7 +48,7 @@
|
|
|
|
/* Get list of available color tables in GMT /share */
|
|
|
|
- sprintf (CPT_lis, "%s%cshare%cGMT_CPT.lis\0", GMTHOME, DIR_DELIM, DIR_DELIM);
|
|
+ sprintf (CPT_lis, "%s%cshare%cgmt%cGMT_CPT.lis\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM);
|
|
|
|
if ((fpc = fopen (CPT_lis, "r")) == NULL) {
|
|
fprintf (stderr, "%s: ERROR: Cannot open file %s\n", GMT_program, CPT_lis);
|
|
@@ -132,9 +132,9 @@
|
|
|
|
if (!ok) { /* No table in current dir, try /share */
|
|
if (table)
|
|
- sprintf (CPT_file, "%s%cshare%cGMT_%s.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, table);
|
|
+ sprintf (CPT_file, "%s%cshare%cgmt%cGMT_%s.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM, table);
|
|
else /* Default to rainbow colors */
|
|
- sprintf (CPT_file, "%s%cshare%cGMT_rainbow.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM);
|
|
+ sprintf (CPT_file, "%s%cshare%cgmt%cGMT_rainbow.cpt\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM);
|
|
|
|
ok = !access (CPT_file, R_OK);
|
|
if (!ok) {
|