~ubuntu-branches/ubuntu/trusty/yaml-mode/trusty

« back to all changes in this revision

Viewing changes to debian/yaml-mode.emacsen-install

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2010-03-06 13:57:50 UTC
  • Revision ID: james.westby@ubuntu.com-20100306135750-frtks06266see9fd
Tags: 0.0.5-2
* Emacsen installation scripts now make sure the target file do not
  exist before symlinking (closes: #572562)
* Urgency medium to fix RC bug in testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
5
5
# from the install scripts for gettext by Santiago Vila
6
6
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
 
7
#
 
8
# Slightly modified by Vincent Fourmond <fourmond@debian.org>
7
9
 
8
10
FLAVOR=$1
9
11
PACKAGE=yaml-mode
28
30
cd ${ELDIR}
29
31
FILES=`echo *.el`
30
32
cd ${ELCDIR}
31
 
# We try hard to make relative symbolic links.
 
33
# Temporarily symlink files for byte-compilation.
32
34
for file in ${FILES}; do 
 
35
    rm -f ${file}               # Remove all files that could have
 
36
                                # been left here before.
33
37
    ln -s ../../../emacs/site-lisp/${PACKAGE}/${file} .
34
38
done
35
39
 
37
41
(setq load-path (cons "." load-path) byte-compile-warnings nil)
38
42
EOF
39
43
${FLAVOR} ${FLAGS} ${FILES}
40
 
rm -f path.el
 
44
rm -f path.el ${FILES}
41
45
 
42
46
exit 0