source: projects/specs/trunk/p/pod-mode/pod-mode-install.sh @ 740

Revision 740, 717 bytes checked in by iwaim, 14 years ago (diff)

add files from pod-mode-0.5-1

  • Property svn:executable set to *
Line 
1#! /bin/sh -e
2# /usr/lib/emacsen-common/packages/install/pod-mode
3
4FLAVOR=$1
5PACKAGE=pod-mode
6
7FLAGS="${SITEFLAG} -q -batch -f batch-byte-compile"
8
9ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}"
10ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}"
11STARTDIR=/etc/${FLAVOR}/site-start.d
12STARTFILE="${PACKAGE}-init.el"
13
14SOURCES="pod-mode.el"
15
16case "${FLAVOR}" in
17    emacs)
18    ;;
19    *) 
20    install -m 755 -d ${ELCDIR}
21    cd ${ELDIR}
22    cp *.el ${ELCDIR}
23    FILES="${SOURCES}"
24    cd ${ELCDIR}
25    ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
26    rm -f ${SOURCES}
27    gzip -9 ${ELCDIR}/CompilationLog
28
29    ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE};
30    echo " done."
31    ;;
32esac
33
34exit 0 ;
Note: See TracBrowser for help on using the repository browser.