summaryrefslogtreecommitdiff
path: root/games/traindirector/files/patch-setup_trdir.sh
blob: 6d37266e882b3a5aac6717f94c635470fb160945 (plain) (blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--- setup_trdir.sh.orig	Tue Jan 25 13:44:55 2005
+++ setup_trdir.sh	Tue Jan 25 13:45:30 2005
@@ -6,9 +6,9 @@
 # edit the folowing line
 #
 # This is the place where traindirector is installed
-TRAINDIR="/usr/local/bin"
+TRAINDIR="PREFIX/bin"
 # This is the place where samples file is installed
-SAMPLE="/usr/local/share"
+SAMPLE="PREFIX/share"
 ##################################################################"
 echo "*********************************"
 echo "*  Traindirector Installation   *"
@@ -16,7 +16,7 @@
 echo
 echo  "Making traindir samples directory....."
 echo 
-TDHOMEDIR="$HOME/traindir"
+TDHOMEDIR="$HOME/.traindir"
 ICONDIR="$TDHOMEDIR/tdicons"
 LOCALEDIR="$TDHOMEDIR/locales"
 if ! test -d $TDHOMEDIR  ; then
@@ -38,7 +38,7 @@
 
 case $CHOIX in
     "2") FLNAME=".traindir.it"
-         echo " Avette schelto Italiano"
+         echo "Avete scelto l'italiano"
          STRING='locale .it';;
 	 	 
     "3") FLNAME=".traindir.fr"
@@ -56,12 +56,10 @@
 if ! test -d $HOME/.traindir ; then
     mkdir $HOME/.traindir
 fi
-    echo $STRING > $HOME/.traindir/.traindir.ini
-    cp -f $SAMPLE/traindir/locales/$FLNAME $HOME/.traindir/
-
-cp -f $SAMPLE/traindir/* $TDHOMEDIR
-cp -f $SAMPLE/traindir/tdicons/*.*  $ICONDIR 
+echo $STRING > $HOME/.traindir/.traindir.ini
+cp -f -R $SAMPLE/traindir/locales/$FLNAME $HOME/.traindir/
 
+cp -f -R $SAMPLE/traindir/* $TDHOMEDIR
 
 echo
 echo   "Creating startup script......"
@@ -69,12 +67,13 @@
 echo   "#!/bin/sh" > $HOME/traindir.sh
 echo   "# Startup file for traindirector" >> $HOME/traindir.sh
 echo   "#" >> $HOME/traindir.sh
-echo   "TDHOME=\"$HOME/traindir\"" >> $HOME/traindir.sh
+echo   "TDHOME=\"$HOME/.traindir\"" >> $HOME/traindir.sh
 echo   "export TDHOME" >> $HOME/traindir.sh
 echo   "echo starting Traindirector" >> $HOME/traindir.sh
 echo   "$TRAINDIR/traindir" >> $HOME/traindir.sh
 
 chmod 0775 $HOME/traindir.sh
 echo "Installation complete"
-echo "You can run ~/traindir.sh from a X console"
-
+echo "a script file 'traindir.sh' has been created in the current"
+echo "directory. You can launch it to start the simulation, or move it"
+echo "to your user's bin directory if you want."