Function: ede-update-version
ede-update-version is an autoloaded, interactive and byte-compiled
function defined in util.el.gz.
Signature
(ede-update-version NEWVERSION)
Documentation
Update the current projects main version number.
Argument NEWVERSION is the version number to use in the current project.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/util.el.gz
;;; Code:
;;; Updating the version of a project.
;;;###autoload
(defun ede-update-version (newversion)
"Update the current projects main version number.
Argument NEWVERSION is the version number to use in the current project."
(interactive (list (let* ((o (ede-toplevel))
(v (oref o version)))
(read-string (format "Update Version (was %s): " v)
v nil v))))
(let ((ede-object (ede-toplevel)))
;; Don't update anything if there was no change.
(unless (string= (oref ede-object version) newversion)
(oset ede-object version newversion)
(project-update-version ede-object)
(ede-update-version-in-source ede-object newversion))))