]> git.notmuchmail.org Git - notmuch/commitdiff
debian: fix linking in emacsen-install script
authorDavid Bremner <david@tethera.net>
Sat, 26 Sep 2015 12:22:11 +0000 (09:22 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 26 Sep 2015 12:22:11 +0000 (09:22 -0300)
When upgrading emacs, the install file can (apparently) be called with
the lisp files already linked into the flavour specific
directories. In this case we should not fail.

debian/notmuch-emacs.emacsen-install

index f35ef48e66e611aea45c8c04e98ff8af3d1ba976..bcfdbb8a581b9e475014d27185dd75f717945cdf 100755 (executable)
@@ -31,7 +31,7 @@ echo install/${PACKAGE}: byte-compiling for ${FLAVOR}
 # Create symlinks to the .el files (see section 6E in debian-emacs
 # polcy).  This makes complation easy, and also allows find-function
 # and find-library to work properly.
-(cd ${elc_dir} && cp -s ${el_dir}/*.el .)
+(cd ${elc_dir} && ln -sf ${el_dir}/*.el .)
 
 # Byte compile them
 (cd ${elc_dir}