File: install

package info (click to toggle)
search-ccsb 0.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 104 kB
  • ctags: 7
  • sloc: makefile: 60; sh: 54; perl: 20; lisp: 15
file content (32 lines) | stat: -rwxr-xr-x 665 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

SCRIPT=/usr/local/bin
LISP=/usr/share/emacs21/site-lisp

echo  "This will install search-ccsb in your computer"
echo -n "Script location (this should be in your PATH) [$SCRIPT]:"
read tmp

if [ "$tmp" != "" ];then
    SCRIPT=$tmp
fi

echo -n "Lisp location [$LISP]:"
read tmp

if [ "$tmp" != "" ]; then
    LISP=$tmp
fi


cp search-ccsb $SCRIPT && echo "Arquivo copiado em $SCRIPT" || exit 1
cp search-ccsb.{el,elc} $LISP && echo "Arquivo copiado em $LISP" || exit 1

echo
echo
echo "It seems that the installation worked fine."
echo "Now you should include the following line in your .emacs"
echo "(load-file \"${LISP}/search-ccsb.elc\")"
echo 
echo