~ubuntu-branches/debian/squeeze/dictem/squeeze

« back to all changes in this revision

Viewing changes to debian/emacsen-install

  • Committer: Bazaar Package Importer
  • Author(s): Yauheni Kaliuta
  • Date: 2009-08-16 14:16:41 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090816141641-zzo9zxtpgq8piss0
Tags: 1.0.2-1
* New upstream release, see NEWS. Closes: #541281
* Install symlink in the flavour directory. Closes: #541287
* Update packaging:
  - Homepage is a regular field;
  - depends on current emacs23 first;
  - copyright points to GPL-2.
  - Standards-Version: 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
if [ ${FLAVOR} = emacs ]; then exit 0; fi
12
12
 
13
 
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
14
 
 
15
13
#FLAVORTEST=`echo $FLAVOR | cut -c-6`
16
14
#if [ ${FLAVORTEST} = xemacs ] ; then
17
15
#    SITEFLAG="-no-site-file"
20
18
#fi
21
19
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
22
20
 
 
21
LOG=`tempfile -pelc_ -s.log -m644`
23
22
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
24
23
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
25
24
 
 
25
echo install/${PACKAGE}: Handling ${FLAVOR}, logged in ${LOG}
 
26
 
26
27
# Install-info-altdir does not actually exist. 
27
28
# Maybe somebody will write it.
28
29
if test -x /usr/sbin/install-info-altdir; then
33
34
install -m 755 -d ${ELCDIR}
34
35
cd ${ELDIR}
35
36
FILES=`echo *.el`
36
 
cp ${FILES} ${ELCDIR}
37
37
cd ${ELCDIR}
 
38
for i in $FILES; do
 
39
    ln -fs /usr/share/emacs/site-lisp/${PACKAGE}/$i
 
40
done
38
41
 
39
42
cat << EOF > path.el
40
43
(setq load-path (cons "." load-path) byte-compile-warnings nil)
41
44
EOF
42
 
${FLAVOR} ${FLAGS} ${FILES}
43
 
rm -f *.el path.el
 
45
echo ${FLAVOR} ${FLAGS} ${FILES} >> ${LOG}
 
46
${FLAVOR} ${FLAGS} ${FILES} >> ${LOG} 2>&1
 
47
egrep -s -e "While compiling|\*\*" ${LOG} || /bin/true
 
48
echo install/${PACKAGE}: Deleting ${LOG}
 
49
rm -f path.el ${LOG}
44
50
 
45
51
exit 0