~ubuntu-branches/debian/jessie/python-mode/jessie

« back to all changes in this revision

Viewing changes to debian/emacsen-install

  • Committer: Package Import Robot
  • Author(s): Hilko Bengen
  • Date: 2012-07-16 20:50:45 UTC
  • Revision ID: package-import@ubuntu.com-20120716205045-s4zf331qeetvyyt7
Tags: 1:6.0.10-1.1
* Non-maintainer upload
* Fixed upgrade failure: Symlinks are sufficient (Closes: #679591)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
29
29
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 
30
ELRELDIR=../../../emacs/site-lisp/${PACKAGE}
30
31
 
31
32
# Install-info-altdir does not actually exist. 
32
33
# Maybe somebody will write it.
39
40
install -m 755 -d ${ELCDIR}
40
41
cd ${ELDIR}
41
42
FILES=`echo *.el`
42
 
cp ${FILES} ${ELCDIR}
43
43
cd ${ELCDIR}
 
44
ln -sf ${ELRELDIR}/*.el .
44
45
 
45
46
cat << EOF > path.el
46
47
(setq load-path (cons "." load-path))
48
49
(setq byte-compile-warnings nil)
49
50
EOF
50
51
${FLAVOR} ${FLAGS} ${FILES}
51
 
rm -f *.el path.el
52
 
# Add back a symlink to the source file so that it is present on
53
 
# load-path.  Closes: #311382
54
 
ln -s ${ELDIR}/python-mode.el
 
52
rm -f path.el
55
53
 
56
54
exit 0