OSDN Git Service

Revert "[actions][cmake] Add --tags option to git describe"
[timidity41/timidity41.git] / debian / timidity-el.emacsen-install
1 #! /bin/sh -e
2 # /usr/lib/emacsen-common/packages/install/timidity-el
3 # $Id: timidity-el.emacsen-install,v 1.2 2003/12/27 13:31:44 hmh Exp $
4
5 # Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
6 # from the install scripts for gettext by Santiago Vila
7 # <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
8 # Adapted for Timidity by Martin Mitchell <martin@debian.org>.
9
10 FLAVOR=$1
11 PACKAGE=timidity-el
12
13 if [ ${FLAVOR} = emacs ]; then exit 0; fi
14
15 echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
16
17 #FLAVORTEST=`echo $FLAVOR | cut -c-6`
18 #if [ ${FLAVORTEST} = xemacs ] ; then
19 #    SITEFLAG="-no-site-file"
20 #else
21 #    SITEFLAG="--no-site-file"
22 #fi
23 FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
24
25 ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
26 ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
27
28 # Install-info-altdir does not actually exist. 
29 # Maybe somebody will write it.
30 if test -x /usr/sbin/install-info-altdir; then
31     echo install/${PACKAGE}: install Info links for ${FLAVOR}
32     install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
33 fi
34
35 install -m 755 -d ${ELCDIR}
36 cd ${ELDIR}
37 FILES=`echo *.el`
38 cp ${FILES} ${ELCDIR}
39 cd ${ELCDIR}
40
41 cat << EOF > path.el
42 (setq load-path (cons "." load-path) byte-compile-warnings nil)
43 EOF
44 ${FLAVOR} ${FLAGS} ${FILES}
45 rm -f *.el path.el
46
47 exit 0