summaryrefslogtreecommitdiff
path: root/support/gtex-letter/install
blob: 7e6cc4aa48006c2cbec3dbf0941f68c9587928bd (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
#
# install script for gtex-letter
# must be root to run

PREFIX=/opt/gnome/bin/
DIR=gtex-letter-prg
PRG=gtex-letter
RCFILE=.gtex-letterrc
LC_PATH=/usr/share/locale/de/LC_MESSAGES
DOC_PATH=/opt/gnome/doc/gtex-letter

if [ -d $PREFIX$DIR ]
then
	echo "Directory $PREFIX$DIR exists, not created."
else
	mkdir $PREFIX$DIR
	echo "Directory $PREFIX$DIR created."
fi

cp [a-z]* $PREFIX$DIR
cp .[a-z]* $PREFIX$DIR
echo "Programm-files copied to $PREFIX$DIR."

cp translations/gtex-letter.de.mo $LC_PATH/gtex-letter.mo && echo "Translation-File copied."

if [ -d $DOC_PATH ]
then
	echo "Directory $DOC_PATH exists, not created."
else
	mkdir $DOC_PATH
	echo "Directory $DOC_PATH created."
fi

cp -r manual/html $DOC_PATH
cp AUTHORS BUGS COPYING ChangeLog INSTALL README THANKS TODO $DOC_PATH 
echo "Documentation copied to $DOC_PATH."


if [ -h $PREFIX$PRG ]
then 
	echo "Link $PREFIX$PRG exists, not created."
else
	ln -s $PREFIX$DIR/$PRG $PREFIX$PRG
	echo "Link $PREFIX$PRG created."
fi