aboutsummaryrefslogtreecommitdiffstats
path: root/games/childsplay/files/patch-cleanup.sh
blob: c9ac2c81b7033d0e3bb1d027a5a9a808ff5263fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- cleanup.sh.orig Tue Jun 29 10:42:05 2004
+++ cleanup.sh  Sun Jul 11 23:58:19 2004
@@ -1,7 +1,11 @@
 #!/bin/sh
+PREFIX=/usr/local
 
 for old in childsplay.mo letters.mo numbers.mo memory.mo \
             soundmemory.mo soundNpic.mo packid.mo; do
     echo "Looking for $old"
-    find /usr/share/locale/ -name $old -exec rm -v {} \;
+    if [ -e $PREFIX/share/locale ] 
+    then
+        find $PREFIX/share/locale/ -name $old -exec rm -v {} \;
+    fi
 done