File: install

package info (click to toggle)
artist 1.1beta1-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 316 kB
  • ctags: 333
  • sloc: lisp: 3,370; sh: 194; makefile: 97
file content (20 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# /usr/lib/emacsen-common/packages/install/calc
set -e

FLAVOR=$1
echo install/artist: Handling install of emacsen flavor ${FLAVOR}

byte_compile_options="-batch -f batch-byte-compile"
el_dir=/usr/share/emacs/site-lisp
elc_dir=/usr/share/${FLAVOR}/site-lisp

if [ ${FLAVOR} != emacs ]; then
    echo install/artist: byte-compiling for ${FLAVOR}

    cp ${el_dir}/artist.el ${elc_dir}
    cd ${elc_dir}
    ${FLAVOR} ${byte_compile_options} artist.el
    rm -f ${elc_dir}/artist.el
fi
exit 0