Only copy existing *.xpm files.
[riece] / lisp / COMPILE
index 5937bbb..4b3d57a 100644 (file)
 
 (defvar riece-icons
   '(riece-command-quit
+    riece-command-join
+    riece-command-part
     riece-command-previous-channel
     riece-command-next-channel
+    riece-command-change-layout
     riece-submit-bug-report))
 
 (defun riece-compile-modules (modules)
   (unless (or just-print (file-exists-p dest))
     (make-directory dest t))
   (while icons
-    (let ((name (symbol-name (car icons))))
-      (princ (format "%s.xpm -> %s\n" name dest))
-      (unless just-print
-       (copy-file (expand-file-name (concat name ".xpm"))
-                  (expand-file-name (concat name ".xpm") dest)
-                  t t)))
+    (if (file-exists-p (expand-file-name (concat name ".xpm")))
+       (let ((name (symbol-name (car icons))))
+         (princ (format "%s.xpm -> %s\n" name dest))
+         (unless just-print
+           (copy-file (expand-file-name (concat name ".xpm"))
+                      (expand-file-name (concat name ".xpm") dest)
+                      t t))))
     (setq icons (cdr icons))))
 
 (defun riece-install-just-print-p ()