diff options
Diffstat (limited to 'emacsen-common/install')
-rwxr-xr-x | emacsen-common/install | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/emacsen-common/install b/emacsen-common/install index 88ed6cf..fe59dcb 100755 --- a/emacsen-common/install +++ b/emacsen-common/install @@ -3,10 +3,7 @@ set -e -PACKAGE=$(basename $0) -VERSION=$(dpkg-query -Wf '${Version}' $PACKAGE) -UPSTREAM_VERSION=${VERSION%-*} -ELPA_PACKAGE=${PACKAGE#elpa-}-${UPSTREAM_VERSION} +ELPA_DIR=#ELPAPACKAGE#-#ELPAVERSION# FLAVOR=$1 case $FLAVOR in @@ -14,25 +11,25 @@ case $FLAVOR in exit 0 ;; emacs23*) - echo install/${ELPA_PACKAGE}: Skipping obsolete emacs ${FLAVOR} + echo install/${ELPA_DIR}: Skipping obsolete emacs ${FLAVOR} exit 0 ;; xemacs*) - echo install/${ELPA_PACKAGE}: Skipping unsupported emacs ${FLAVOR} + echo install/${ELPA_DIR}: Skipping unsupported emacs ${FLAVOR} exit 0 ;; *) - echo install/${ELPA_PACKAGE}: Handling install of emacsen flavor ${FLAVOR} + echo install/${ELPA_DIR}: Handling install of emacsen flavor ${FLAVOR} esac src_dir=/usr/share/emacs/site-lisp/elpa-src -el_dir=$src_dir/${ELPA_PACKAGE}/ -elc_dir=/usr/share/${FLAVOR}/site-lisp/elpa/${ELPA_PACKAGE}/ +el_dir=$src_dir/${ELPA_DIR}/ +elc_dir=/usr/share/${FLAVOR}/site-lisp/elpa/${ELPA_DIR}/ export EMACSLOADPATH EMACSLOADPATH="/usr/share/emacs/site-lisp:" -echo install/${ELPA_PACKAGE}: byte-compiling for ${FLAVOR} +echo install/${ELPA_DIR}: byte-compiling for ${FLAVOR} [ -d ${elc_dir} ] || mkdir -p ${elc_dir} |