diff options
Diffstat (limited to 'lisp/cedet/ede/cpp-root.el')
| -rw-r--r-- | lisp/cedet/ede/cpp-root.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el index f0dbccb7fc1..ee8aa5db1b7 100644 --- a/lisp/cedet/ede/cpp-root.el +++ b/lisp/cedet/ede/cpp-root.el | |||
| @@ -478,6 +478,21 @@ Argument COMMAND is the command to use for compiling the target." | |||
| 478 | "Don't rescan this project from the sources." | 478 | "Don't rescan this project from the sources." |
| 479 | (message "cpp-root has nothing to rescan.")) | 479 | (message "cpp-root has nothing to rescan.")) |
| 480 | 480 | ||
| 481 | ;;; Quick Hack | ||
| 482 | (defun ede-create-lots-of-projects-under-dir (dir projfile &rest attributes) | ||
| 483 | "Create a bunch of projects under directory DIR. | ||
| 484 | PROJFILE is a file name sans directory that indicates a subdirectory | ||
| 485 | is a project directory. | ||
| 486 | Generic ATTRIBUTES, such as :include-path can be added. | ||
| 487 | Note: This needs some work." | ||
| 488 | (let ((files (directory-files dir t))) | ||
| 489 | (dolist (F files) | ||
| 490 | (if (file-exists-p (expand-file-name projfile F)) | ||
| 491 | `(ede-cpp-root-project (file-name-nondirectory F) | ||
| 492 | :name (file-name-nondirectory F) | ||
| 493 | :file (expand-file-name projfile F) | ||
| 494 | attributes))))) | ||
| 495 | |||
| 481 | (provide 'ede/cpp-root) | 496 | (provide 'ede/cpp-root) |
| 482 | 497 | ||
| 483 | ;; Local variables: | 498 | ;; Local variables: |