GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include "globals.h"
Go to the source code of this file.
Functions | |
void | check_extension (char *package, char *name, int *major, int *minor, int *revision) |
void | unpack_extension (char *package) |
void | query_extension (char *package, char *name, int major, int minor, int revision, char *short_name, char *invocation, char *org_name) |
void | source_install (char *package, char *gisbase, char *pkg_short_name, int pkg_major, int pkg_minor, int pkg_revision, char *grass_version) |
void | bin_install (char *package, char *gisbase, char *bins, char *pkg_short_name, int pkg_major, int pkg_minor, int pkg_revision, char *grass_version) |
void | test_install (char *package, char *gisbase, char *pkg_short_name, int pkg_major, int pkg_minor, int pkg_revision, char *grass_version) |
void | uninstall (char *package, char *pkg_short_name, char *gisbase, char *grass_version) |
int | source_clean (char *package) |
void | restore (char *gisbase, char *grass_version) |
void | list_extensions (char *gisbase) |
void | run_post (char *package, int action, char *bins, char *gisbase) |
void bin_install | ( | char * | package, |
char * | gisbase, | ||
char * | bins, | ||
char * | pkg_short_name, | ||
int | pkg_major, | ||
int | pkg_minor, | ||
int | pkg_revision, | ||
char * | grass_version | ||
) |
Definition at line 475 of file actions.c.
References basename(), check_dependencies(), dump_html(), ERR_INSTALL_EXT, ERR_NO_ACCESS_EXT, errno, exit_tmp(), fclose(), free(), GEM_EXT_AUTHORS, GEM_EXT_BUGS, GEM_EXT_DEPS, GEM_EXT_DESCR, GEM_EXT_INFO, GEM_EXT_NAME, GEM_EXT_VERSION, GEM_GRASS_DIR, GINSTALL_DST, GINSTALL_INC, GINSTALL_LIB, GISMAN2_CMD, GISMAN_CMD, HTML_CMD, MAKE_CMD, MAXSTR, NULL, print_done(), print_error(), print_warning(), register_entries_gisman(), register_entries_gisman2(), register_extension(), register_html(), sprintf(), stat, su(), TMP_AUTHORS, TMP_BUGS, TMP_DEPS, TMP_DESCR, TMP_INFO, TMP_NULL, TMPDB, UNINSTALL_CMD, and VERBOSE.
Referenced by main().
Definition at line 29 of file actions.c.
References ERR_INVALID_EXT, ERR_NO_ACCESS_EXT, errno, fclose(), get_package_name(), MAXSTR, nc_fgets_nb(), NULL, print_done(), print_error(), and sprintf().
Referenced by main().
void list_extensions | ( | char * | gisbase | ) |
void query_extension | ( | char * | package, |
char * | name, | ||
int | major, | ||
int | minor, | ||
int | revision, | ||
char * | short_name, | ||
char * | invocation, | ||
char * | org_name | ||
) |
Definition at line 201 of file actions.c.
References basename(), dump_ascii(), ERR_NO_ACCESS_EXT, errno, list_binaries(), MAXSTR, print_error(), and sprintf().
Referenced by main().
void restore | ( | char * | gisbase, |
char * | grass_version | ||
) |
Definition at line 952 of file actions.c.
References ERR_RESTORE, free(), MAXSTR, NULL, print_done(), print_error(), restore_entries_gisman(), restore_html(), sprintf(), su(), TMP_GISMAN, TMP_HTML, TMP_NULL, and VERBOSE.
Referenced by main().
void run_post | ( | char * | package, |
int | action, | ||
char * | bins, | ||
char * | gisbase | ||
) |
Definition at line 1057 of file actions.c.
References basename(), BIN_INSTALL, CLEAN, DETAILS, exit_tmp(), EXT_BASE, FORCE, GEM_ACTION, GEM_FORCE, GEM_GUI, GEM_VERBOSE, INSTALL, INSTALL_BASE, INSTALL_TYPE, LICENSE, MAXSTR, NULL, QUERY, sprintf(), and VERBOSE.
Referenced by main().
int source_clean | ( | char * | package | ) |
Definition at line 907 of file actions.c.
References basename(), ERR_MISSING_CMD, ERR_NO_ACCESS_EXT, MAKE_CMD, MAXSTR, print_done(), print_error(), sprintf(), TMP_NULL, and VERBOSE.
Referenced by main().
void source_install | ( | char * | package, |
char * | gisbase, | ||
char * | pkg_short_name, | ||
int | pkg_major, | ||
int | pkg_minor, | ||
int | pkg_revision, | ||
char * | grass_version | ||
) |
Definition at line 263 of file actions.c.
References basename(), check_dependencies(), CONFIG_CMD, CONFIG_OPTS, dump_html(), ERR_COMPILE_EXT, ERR_CONFIGURE_EXT, ERR_INSTALL_EXT, ERR_MISSING_CFG, ERR_MISSING_CMD, ERR_NO_ACCESS_EXT, errno, exit_tmp(), fclose(), free(), GEM_EXT_AUTHORS, GEM_EXT_BUGS, GEM_EXT_DEPS, GEM_EXT_DESCR, GEM_EXT_INFO, GEM_EXT_NAME, GEM_EXT_VERSION, GEM_GRASS_DIR, GINSTALL_DST, GINSTALL_INC, GINSTALL_LIB, GISMAN2_CMD, GISMAN_CMD, HTML_CMD, MAKE_CMD, MAXSTR, NULL, print_cfg(), print_done(), print_error(), print_warning(), register_entries_gisman(), register_entries_gisman2(), register_extension(), register_html(), SKIP_CFG, sprintf(), stat, su(), TMP_AUTHORS, TMP_BUGS, TMP_DEPS, TMP_DESCR, TMP_INFO, TMP_NULL, TMPDB, UNINSTALL_CMD, and VERBOSE.
Referenced by main().
void test_install | ( | char * | package, |
char * | gisbase, | ||
char * | pkg_short_name, | ||
int | pkg_major, | ||
int | pkg_minor, | ||
int | pkg_revision, | ||
char * | grass_version | ||
) |
Definition at line 636 of file actions.c.
References basename(), check_dependencies(), CONFIG_CMD, CONFIG_OPTS, dump_plain(), ERR_COMPILE_EXT, ERR_CONFIGURE_EXT, ERR_INSTALL_EXT, ERR_MISSING_CFG, ERR_MISSING_CMD, ERR_NO_ACCESS_EXT, errno, exit_tmp(), fclose(), free(), GEM_EXT_AUTHORS, GEM_EXT_BUGS, GEM_EXT_DEPS, GEM_EXT_DESCR, GEM_EXT_INFO, GEM_EXT_NAME, GEM_EXT_VERSION, GEM_GRASS_DIR, GINSTALL_DST, GINSTALL_INC, GINSTALL_LIB, MAKE_CMD, MAXSTR, NULL, print_cfg(), print_done(), print_error(), print_warning(), register_entries_gisman(), register_entries_gisman2(), register_extension(), register_html(), SKIP_CFG, sprintf(), stat, TMP_AUTHORS, TMP_BUGS, TMP_DEPS, TMP_DESCR, TMP_INFO, TMP_NULL, and VERBOSE.
Referenced by main().
void uninstall | ( | char * | package, |
char * | pkg_short_name, | ||
char * | gisbase, | ||
char * | grass_version | ||
) |
Definition at line 812 of file actions.c.
References deregister_entries_gisman(), deregister_entries_gisman2(), deregister_extension(), deregister_html(), errno, exit_tmp(), free(), GISMAN_CMD, HTML_CMD, MAXSTR, NULL, print_done(), print_warning(), sprintf(), stat, su(), TMP_NULL, TMPDB, UNINSTALL_BASE, UNINSTALL_CMD, and VERBOSE.
Referenced by main().
void unpack_extension | ( | char * | package | ) |
Definition at line 88 of file actions.c.
References basename(), check_filetype(), ERR_UNPACK_EXT, errno, exit_tmp(), fd, MAXSTR, mkdir_s(), print_done(), print_error(), print_warning(), sprintf(), TAR, TAR_BZIP2, TAR_GZIP, TMPDIR, TYPE_UNKNOWN, VERBOSE, and ZIP.
Referenced by main().