File: install.sh

package info (click to toggle)
psi 0.8.5-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,916 kB
  • ctags: 10,215
  • sloc: cpp: 17,928; ansic: 13,065; makefile: 82; sh: 23
file content (32 lines) | stat: -rwxr-xr-x 619 bytes parent folder | download
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/sh

if [ ! -f ./psi ]; then
  echo "The program 'psi' doesn't exist.  Perhaps this is a source package and you have not yet compiled the program?  Go read the INSTALL file."
  exit 1
fi

export PSIDIR=/usr/local/psi

echo [Installing Psi]

mkdir -p $PSIDIR

echo Copying program files to /usr/local/psi
cp -r ./image $PSIDIR
cp -r ./iconsets $PSIDIR
cp -r ./sound $PSIDIR

cp ./psi $PSIDIR
cp ./README $PSIDIR
cp ./COPYING $PSIDIR

mkdir -p /usr/local/bin
if [ -e /usr/local/bin/psi ]; then
  rm /usr/local/bin/psi
fi

echo Putting a link in /usr/local/bin
ln -s $PSIDIR/psi /usr/local/bin/psi

echo [Finished]