~ubuntu-branches/ubuntu/intrepid/crypt++el/intrepid

« back to all changes in this revision

Viewing changes to debian/crypt++el.emacsen-install

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2008-05-26 16:27:34 UTC
  • Revision ID: james.westby@ubuntu.com-20080526162734-yoo0t3f1ye0cax97
Tags: 2.92-2
* reintroduce in Debian (closes: #481082)
* readopt package
* change from debmake to debhelper (closes: #372986)
* update to standards-version 3.7.3
* change Upstream address (closes: #404890)
* include some hints in Readme.Debian how to change default encryption
  type (closes: #217722)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# /usr/lib/emacsen-common/packages/install/crypt++el
 
3
set -e
 
4
 
 
5
FLAVOR=$1
 
6
echo install/crypt++el: Handling install of emacsen flavor ${FLAVOR}
 
7
 
 
8
byte_compile_options="-batch -f batch-byte-compile"
 
9
el_files="crypt++.el" 
 
10
el_dir=/usr/share/emacs/site-lisp/
 
11
elc_dir=/usr/share/${FLAVOR}/site-lisp/
 
12
el_path_list=`echo ${el_files} | perl -pe "s|^|${el_dir}|o"`
 
13
elc_path_list=`echo ${el_files} | perl -pe "s|^|${elc_dir}|o"`
 
14
#etc_dir=/etc/${FLAVOR}/site-start.d/
 
15
 
 
16
if [ ${FLAVOR} != emacs ]
 
17
then
 
18
  echo install/crypt++el: byte-compiling for ${FLAVOR}
 
19
 
 
20
#  ln -sf ${el_dir}/crypt++-init.el ${etc_dir}/50crypt++.el
 
21
 
 
22
  # Copy the temp .el files
 
23
  cp ${el_path_list} ${elc_dir}
 
24
 
 
25
  # Byte compile them
 
26
#  cat <<-EOF >${elc_dir}/load-path-hack.el
 
27
#(setq load-path (cons nil load-path))
 
28
#EOF
 
29
  (cd ${elc_dir} && ${FLAVOR} ${byte_compile_options} ${elc_path_list} 2>/dev/null)
 
30
 
 
31
  # remove the redundant .el files
 
32
  # presumes that any .el files in the <flavor> dir are trash.
 
33
#  rm ${elc_dir}/load-path-hack.el
 
34
  rm ${elc_dir}/crypt++.el
 
35
fi
 
36
exit 0;
 
37
 
 
38
### Local Variables:
 
39
### mode: shell-script
 
40
### End: