diff options
author | David Bremner <bremner@debian.org> | 2018-07-23 18:45:36 +0800 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2018-07-23 19:44:02 +0800 |
commit | 48bcffb43e4f0682324b3837c7b47ff525beae2c (patch) | |
tree | 85c042b4a5261142bce96719fb93157f2b4ec10f | |
parent | a4afdb278ab47c6ca54834874f04c7847bdf42d7 (diff) |
Guard symlinking and removal of .el by FLAVOUR
-rw-r--r-- | debian/cdargs.emacsen-install | 4 | ||||
-rw-r--r-- | debian/cdargs.emacsen-remove | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/debian/cdargs.emacsen-install b/debian/cdargs.emacsen-install index e01baa2..5d781f8 100644 --- a/debian/cdargs.emacsen-install +++ b/debian/cdargs.emacsen-install @@ -14,7 +14,9 @@ echo install/cdargs: 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 ../../../emacs/site-lisp/cdargs/*.el .) +if [ ${FLAVOR} != "emacs" ]; then + (cd ${elc_dir} && cp -s ../../../emacs/site-lisp/cdargs/*.el .) +fi # Byte compile them (cd ${elc_dir} && ${FLAVOR} ${byte_compile_options} *.el > /dev/null 2>&1) diff --git a/debian/cdargs.emacsen-remove b/debian/cdargs.emacsen-remove index e8d0518..a323a51 100644 --- a/debian/cdargs.emacsen-remove +++ b/debian/cdargs.emacsen-remove @@ -8,7 +8,11 @@ echo remove/cdargs: Handling removal of emacsen flavor ${FLAVOR} echo remove/cdargs: purging byte-compiled files for ${FLAVOR} rm -f ${elc_dir}/*.elc -rm -f ${elc_dir}/*.el + +if [ ${FLAVOR} != "emacs" ]; then + rm -f ${elc_dir}/*.el +fi + if test -e ${elc_dir}; then rmdir --ignore-fail-on-non-empty ${elc_dir} fi |