]> code.delx.au - gnu-emacs/blobdiff - lisp/cedet/ede/linux.el
Fix typos.
[gnu-emacs] / lisp / cedet / ede / linux.el
index 451c1ea5212d9713723b089c048248989b0423d9..0ed9c3054ef692868f262cd1f6305f838c25c74f 100644 (file)
@@ -1,6 +1,6 @@
 ;;; ede/linux.el --- Special project for Linux
 
-;; Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+;; Copyright (C) 2008-2011 Free Software Foundation, Inc.
 
 ;; Author: Eric M. Ludlam <eric@siege-engine.com>
 
@@ -62,7 +62,7 @@ DIR is the directory to search from."
     (if proj
        (ede-up-directory (file-name-directory
                           (oref proj :file)))
-      ;; No pre-existing project.  Lets take a wild-guess if we have
+      ;; No pre-existing project.  Let's take a wild-guess if we have
       ;; an Linux project here.
       (when (string-match "linux[^/]*" dir)
        (let ((base (substring dir 0 (match-end 0))))
@@ -101,7 +101,7 @@ Return nil if there isn't one.
 Argument DIR is the directory it is created for.
 ROOTPROJ is nil, since there is only one project."
   (or (ede-linux-file-existing dir)
-      ;; Doesn't already exist, so lets make one.
+      ;; Doesn't already exist, so let's make one.
       (ede-linux-project "Linux"
                         :name "Linux"
                         :version (ede-linux-version dir)
@@ -112,6 +112,18 @@ ROOTPROJ is nil, since there is only one project."
       )
   )
 
+;;;###autoload
+(add-to-list 'ede-project-class-files
+            (ede-project-autoload "linux"
+             :name "LINUX ROOT"
+             :file 'ede/linux
+             :proj-file "scripts/ver_linux"
+             :proj-root 'ede-linux-project-root
+             :load-type 'ede-linux-load
+             :class-sym 'ede-linux-project
+             :new-p nil)
+            t)
+
 (defclass ede-linux-target-c (ede-target)
   ()
   "EDE Linux Project target for C code.
@@ -124,7 +136,7 @@ All directories need at least one target.")
 
 (defmethod initialize-instance ((this ede-linux-project)
                                &rest fields)
-  "Make sure the :file is fully expanded."
+  "Make sure the targets slot is bound."
   (call-next-method)
   (unless (slot-boundp this 'targets)
     (oset this :targets nil)))
@@ -233,5 +245,4 @@ Knows about how the Linux source tree is organized."
 ;; generated-autoload-load-name: "ede/linux"
 ;; End:
 
-;; arch-tag: 41f310c8-b169-4259-8a2d-0ff4bd0a736d
 ;;; ede/linux.el ends here