18 #include <grass/gis.h> 19 #include <grass/glocale.h> 20 #include <grass/vector.h> 22 #include "manage_local_proto.h" 35 int M_do_copy(
int n,
const char *old,
const char *mapset,
const char *
new)
43 G_message(
_(
"Copying %s <%s> to current mapset as <%s>"),
50 G_warning(
_(
"Unable to copy <%s> to current mapset as <%s>"),
59 if (access(path, 0) != 0) {
67 G_warning(
_(
"Unable to copy <%s> to current mapset as <%s>"),
81 sprintf(colr2,
"colr2/%s",
G_mapset());
int G_make_mapset_element(const char *p_element)
Create element in the current mapset.
int G_strcasecmp(const char *x, const char *y)
String compare ignoring case (upper or lower)
int M_do_copy(int n, const char *old, const char *mapset, const char *new)
Copy element.
void G_verbose_message(const char *msg,...)
Print a message to stderr but only if module is in verbose mode.
int G_recursive_copy(const char *src, const char *dst)
Copy recursively source directory to destination directory.
char * G_file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
int G_debug(int level, const char *msg,...)
Print debugging message.
int G_remove(const char *element, const char *name)
Remove a database file.
int Vect_copy(const char *in, const char *mapset, const char *out)
Copy vector map including attribute tables.
int M__hold_signals(int hold)
Hold signals.
void G_message(const char *msg,...)
Print a message to stderr.
char * G_fully_qualified_name(const char *name, const char *mapset)
Get fully qualified element name.
const char * G_mapset(void)
Get current mapset name.
void G_warning(const char *msg,...)
Print a warning message to stderr.