summaryrefslogtreecommitdiff
path: root/emacsen-common/install
diff options
context:
space:
mode:
authorDavid Bremner <bremner@debian.org>2015-09-22 09:23:12 -0300
committerDavid Bremner <bremner@debian.org>2015-09-22 09:23:12 -0300
commit28c9a694796c6ddac89b03da1980c5a908d8737f (patch)
tree97578977243c2548612c489a7d02b9a21881dad8 /emacsen-common/install
parent43ff615bb4f5bd9cd5f21a06cabf5cc7c0163fd6 (diff)
update templates to rely on substitution
Diffstat (limited to 'emacsen-common/install')
-rwxr-xr-xemacsen-common/install17
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}