aboutsummaryrefslogtreecommitdiffstats
path: root/games/childsplay/files/patch-INSTALL.sh
blob: 67d84ca5157b95f6e5e691c4e0ab341134ae896c (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
--- INSTALL.sh.orig Wed Apr 20 10:57:03 2005
+++ INSTALL.sh  Wed Apr 20 11:02:16 2005
@@ -1,5 +1,5 @@
-#!/bin/bash
+#!/bin/sh
 # install childsplay.  
 # Be aware that childsplay probably won't work when you edit this file :-(
 # As of 11/2004 childsplay will be converted to follow the File System
 # Hierarchy (FSH).
@@ -21,16 +21,15 @@
 PYTHON=`which python`
 
 EXECDIR=$PREFIX/bin
 LOCALEDIR=$PREFIX/share/locale
-ASSETMLDIR=/usr/share/assetml
+ASSETMLDIR=$PREFIX/share/gnome/assetml
 SCOREDIR=/var/games
 SCOREFILE=$SCOREDIR/childsplay.score
 DOCDIR=$PREFIX/share/doc/childsplay
 MANDIR=$PREFIX/man/man6
-CPDIR=$PREFIX/lib/games/childsplay
+CPDIR=$PREFIX/childsplay
 SHAREDIR=$PREFIX/share/childsplay
-BINDIR=$PREFIX/games
 LIBDIR=$CPDIR/lib
 MODULESDIR=$LIBDIR
 SHARELIBDATADIR=$SHAREDIR/lib
 SHAREDATADIR=$SHAREDIR/Data
@@ -38,10 +37,8 @@
 
 HOME_DIR_NAME=.childsplay
 CHILDSPLAYRC=childsplayrc
 
-OLDCPDIR=$PREFIX/games/childsplay
-
 echo "Making directorys"
 mkdir -vp $CPDIR
 mkdir -vp $CPDIR/lib
 mkdir -vp $DOCDIR
@@ -51,9 +48,8 @@
 mkdir -vp $MANDIR
 mkdir -vp $SHAREDIR
 mkdir -vp $SHAREDATADIR
 mkdir -vp $SHARELIBDATADIR
-mkdir -vp $BINDIR
 mkdir -vp $EXECDIR
 
 set -e
 
@@ -63,13 +59,8 @@
     echo " You must be root to install the plugins"
     echo " exit"
     exit 1
 fi
-echo " Looking for obsolete childsplay files in $OLDCPDIR"
-if [ -e $OLDCPDIR ] && [ -d $OLDCPDIR ]
-then rm -fr $OLDCPDIR
-     echo " Old files removed"
-fi
 
 echo -e "\n>>>>>>>>>>> Install childsplay >>>>>>>>>>>>>>>>>>>>"
 echo " Installing in $PREFIX"
 
@@ -83,8 +74,9 @@
     fi
 done
 
 cp -f $CWD/*.py $CPDIR/
+cp -f $CWD/*.pyc $CPDIR/
 
 echo " Copy misc. data files"
 for FILE in `ls $CWD/Data`
 do 
@@ -113,22 +105,14 @@
 echo " Copy docs"
 cp -rf $CWD/doc/* $DOCDIR/
 
 echo " Copy executable and setting permissions."
-cp -f $CWD/childsplay.sh $BINDIR/childsplay
 cp -f $CWD/childsplay.sh $EXECDIR/childsplay
-chmod +x $BINDIR/childsplay
 chmod +x $EXECDIR/childsplay
 
 chmod +x $CPDIR/childsplay.py
 chmod +x $CPDIR/letters-trans.py
 
-#echo " Looking for the old executable, if any"
-#if [ -e /usr/local/bin/childsplay ]
-#then rm -f /usr/local/bin/childsplay
-#    echo "found and removed"
-#fi
-
 echo " Setting the base path in childsplay to $PREFIX"
 echo "## Automated file please do not edit" > $CPDIR/BASEPATH.py
 echo "BASEPATH=\"$PREFIX\"" >> $CPDIR/BASEPATH.py
 echo "EXECDIR=\"$EXECDIR\"" >> $CPDIR/BASEPATH.py
@@ -157,9 +141,9 @@
 echo ""
 echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 echo " One thing left todo..."
 echo " Translating words"
-$PYTHON $CPDIR/letters-trans.py $ASSETMLDIR
+echo " to translate words run: $PYTHON $CPDIR/letters-trans.py $ASSETMLDIR"
 echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 echo " Be sure to read the README-MEMORY file on how you can"
 echo " use your own pictures in the memory game."
 echo ""