Function: autoconf-new-program
autoconf-new-program is an interactive and byte-compiled function
defined in autoconf-edit.el.gz.
Signature
(autoconf-new-program ROOTDIR PROGRAM TESTFILE)
Documentation
Initialize a new configure.ac in ROOTDIR for PROGRAM using TESTFILE.
ROOTDIR is the root directory of a given autoconf controlled project. PROGRAM is the program to be configured. TESTFILE is the file used with AC_INIT.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/autoconf-edit.el.gz
(defun autoconf-new-program (rootdir program testfile)
"Initialize a new configure.ac in ROOTDIR for PROGRAM using TESTFILE.
ROOTDIR is the root directory of a given autoconf controlled project.
PROGRAM is the program to be configured.
TESTFILE is the file used with AC_INIT."
(interactive "DRoot Dir: \nsProgram: \nsTest File: ")
(require 'ede/srecode)
(if (bufferp rootdir)
(set-buffer rootdir)
(let ((cf1 (expand-file-name "configure.in" rootdir))
(cf2 (expand-file-name "configure.ac" rootdir)))
(if (and (or (file-exists-p cf1) (file-exists-p cf2))
(not (y-or-n-p (format "File %s exists. Start Over? "
(if (file-exists-p cf1)
cf1 cf2)
))))
(error "Quit"))
(find-file cf2)))
;; Note, we only ask about overwrite if a string/path is specified.
(erase-buffer)
(ede-srecode-setup)
(ede-srecode-insert
"file:ede-empty"
"TEST_FILE" testfile
"PROGRAM" program)
)