File indexing completed on 2024-05-12 05:39:33

0001 #! /bin/sh -e
0002 # /usr/lib/emacsen-common/packages/install/rolisteam
0003 
0004 # Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
0005 # from the install scripts for gettext by Santiago Vila
0006 # <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
0007 
0008 FLAVOR=$1
0009 PACKAGE=rolisteam
0010 
0011 if [ ${FLAVOR} = emacs ]; then exit 0; fi
0012 
0013 echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
0014 
0015 #FLAVORTEST=`echo $FLAVOR | cut -c-6`
0016 #if [ ${FLAVORTEST} = xemacs ] ; then
0017 #    SITEFLAG="-no-site-file"
0018 #else
0019 #    SITEFLAG="--no-site-file"
0020 #fi
0021 FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
0022 
0023 ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
0024 ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
0025 
0026 # Install-info-altdir does not actually exist.
0027 # Maybe somebody will write it.
0028 if test -x /usr/sbin/install-info-altdir; then
0029     echo install/${PACKAGE}: install Info links for ${FLAVOR}
0030     install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
0031 fi
0032 
0033 install -m 755 -d ${ELCDIR}
0034 cd ${ELDIR}
0035 FILES=`echo *.el`
0036 cp ${FILES} ${ELCDIR}
0037 cd ${ELCDIR}
0038 
0039 cat << EOF > path.el
0040 (setq load-path (cons "." load-path) byte-compile-warnings nil)
0041 EOF
0042 ${FLAVOR} ${FLAGS} ${FILES}
0043 rm -f *.el path.el
0044 
0045 exit 0