Function: cedet-gnu-global-create/update-database

cedet-gnu-global-create/update-database is an interactive and byte-compiled function defined in cedet-global.el.gz.

Signature

(cedet-gnu-global-create/update-database &optional DIR)

Documentation

Create a GNU Global database in DIR.

If a database already exists, then just update it.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/cedet-global.el.gz
(defun cedet-gnu-global-create/update-database (&optional dir)
  "Create a GNU Global database in DIR.
If a database already exists, then just update it."
  (interactive "DDirectory: ")
  (let ((root (cedet-gnu-global-root dir)))
    (if root (setq dir root))
    (let ((default-directory dir))
      (if root
          ;; Incremental update. This can be either "gtags -i" or
          ;; "global -u"; the gtags manpage says it's better to use
          ;; "global -u".
	  (cedet-gnu-global-call (list "-u"))
	(cedet-gnu-global-gtags-call nil)
	)
      )))