summaryrefslogtreecommitdiff
path: root/support/gtex-letter/install
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/gtex-letter/install
Initial commit
Diffstat (limited to 'support/gtex-letter/install')
-rw-r--r--support/gtex-letter/install48
1 files changed, 48 insertions, 0 deletions
diff --git a/support/gtex-letter/install b/support/gtex-letter/install
new file mode 100644
index 0000000000..7e6cc4aa48
--- /dev/null
+++ b/support/gtex-letter/install
@@ -0,0 +1,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
+
+