source: projects/specs/trunk/g/git/git-install.sh @ 1965

Revision 1965, 1.0 KB checked in by iwaim, 14 years ago (diff)

git 1.7.1-1: add files

  • Property svn:executable set to *
Line 
1#! /bin/sh -e
2#  /usr/lib/emacsen-common/packages/install/git
3
4set -e
5
6FLAVOR=$1
7PACKAGE="git"
8
9
10if [ "X${FLAVOR}" = "X" ]; then
11    echo Need argument to determin FLAVOR of emacs;
12    exit 1
13fi
14
15if [ "X${PACKAGE}" = "X" ]; then
16    echo Internal error: need package name;
17    exit 1;
18fi
19
20ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
21ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
22
23STARTDIR=/etc/${FLAVOR}/site-start.d
24STARTFILE="${PACKAGE}-init.el";
25
26case "${FLAVOR}" in
27    emacs|emacs19|mule)
28        ;;
29    *)
30        echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
31        rm -rf ${ELCDIR}
32        install -m 755 -d ${ELCDIR}
33
34        # Copy the temp .el files
35        cp -a ${ELDIR}/* ${ELCDIR}/
36
37        # Byte compile them
38        (cd ${ELCDIR}
39            ${FLAVOR} -batch -q -no-site-file \
40                      -f batch-byte-compile *.el > CompilationLog 2>&1
41            rm -f *.el
42        )
43        gzip -9 ${ELCDIR}/CompilationLog
44        cp -a ${ELDIR}/${STARTFILE} ${STARTDIR}/55${STARTFILE}
45        echo " done."
46        #
47        ;;
48esac
49
50exit 0;
Note: See TracBrowser for help on using the repository browser.