]> git.notmuchmail.org Git - notmuch/commitdiff
debian: Fix broken symlinking of emacs lisp files.
authorCarl Worth <cworth@cworth.org>
Tue, 6 Apr 2010 23:28:01 +0000 (16:28 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 01:30:43 +0000 (18:30 -0700)
This broke when we changed from a single notmuch.el file
to multiple notmuch-foo.el files.

debian/notmuch.emacsen-install

index 67602604b735bfcb213bc4741b1b2c3105565428..4982691efe0098d366017424096eddc925088dad 100755 (executable)
@@ -28,12 +28,14 @@ install -m 755 -d ${ELCDIR}
 cd ${ELDIR}
 FILES=`echo *.el`
 cd ${ELCDIR}
-ln -sf ${ELDIR}/${FILES} ${ELCDIR}
+for file in ${FILES}; do
+       ln -sf ${ELDIR}/${file} .
+done
 
 cat << EOF > path.el
 (setq load-path (cons "." load-path) byte-compile-warnings nil)
 EOF
 ${FLAVOR} ${FLAGS} ${FILES}
-rm -f path.el
+rm -f *.el
 
 exit 0