~ubuntu-branches/ubuntu/maverick/slime/maverick

« back to all changes in this revision

Viewing changes to debian/emacsen-install

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2007-10-04 09:09:47 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071004090947-8oy7djtx8no3erxy
Tags: 1:20070927-2
Readded tree-widget to the sources. emacs21 on
debian does _not_ have that file. emacs22 and xemacs do.
(Closes: #445174)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
  fi
44
44
fi
45
45
 
 
46
if [ -d "${ELCDIR}/contrib" ] ; then
 
47
  if [ "${ELCDIR}" == "" ] ; then
 
48
    echo ELCDIR is empty, emergency stop
 
49
    exit 1
 
50
  else
 
51
    # we use find to protect against 'bad' filenames
 
52
    find "${ELCDIR}/contrib" -maxdepth 1 -name "*.el" -print0 | \
 
53
      xargs -0 rm || true
 
54
  fi
 
55
fi
 
56
 
46
57
install -m 755 -d ${ELCDIR}
 
58
install -m 755 -d ${ELCDIR}/contrib
47
59
cd ${ELDIR}
48
60
FILES=`echo *.el`
49
61
cp ${FILES} ${ELCDIR}
 
62
 
 
63
cd ${ELDIR}/contrib
 
64
CFILES=`echo *.el`
 
65
cp ${CFILES} ${ELCDIR}/contrib/
 
66
 
50
67
cd ${ELCDIR}
51
68
 
52
 
 
53
69
cat << EOF > path.el
54
70
(setq load-path (cons "." load-path) byte-compile-warnings nil)
55
71
EOF
56
 
${FLAVOR} ${FLAGS} ${FILES}
 
72
${FLAVOR} ${FLAGS} ${FILES} `for i in ${CFILES} ; do echo contrib/$i ; done `
57
73
rm -f *.el path.el
58
74
 
59
 
 
60
75
## [sc]
61
76
## while in ${ELCDIR}
62
77
 
63
78
## symlink the source files into the ${ELCDIR}
64
79
## so that `find-library' will find them
 
80
cd ${ELCDIR}
65
81
for FILE in $FILES ; do 
66
82
  if ! [ -e $FILE ];  then
67
83
  ## note that these will not be 'relative' symlinks.
69
85
  fi
70
86
done
71
87
 
 
88
cd ${ELCDIR}/contrib
 
89
for FILE in $CFILES ; do 
 
90
  if ! [ -e $FILE ];  then
 
91
  ## note that these will not be 'relative' symlinks.
 
92
    ln -s ${ELDIR}/contrib/$FILE .
 
93
  fi
 
94
done
72
95
exit 0