summaryrefslogtreecommitdiff
blob: c04da305c14493dd6a5e2c6a7ba6e8b52f2c4388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- viewmol-2.4.1.orig/source/install	2004-10-09 08:38:31.000000000 -0700
+++ viewmol-2.4.1/source/install	2005-12-02 11:34:35.000000000 -0800
@@ -71,7 +71,7 @@
 find $ROOT/lib/viewmol -type d -exec chmod a+rx {} \;
 sed 's/\/source//g' viewmolrc > $ROOT/lib/viewmol/viewmolrc
 chmod -R 644 $ROOT/lib/viewmol/viewmolrc
-if [ -d /usr/X11R6/lib/X11/app-defaults ]
+if [ -d $ROOT/X11R6/lib/X11/app-defaults ]
 then
   locale=`echo $LANG | cut -c1-2`
   if [ "$locale" = "en" ]
@@ -82,6 +82,6 @@
     # The C locale is defined by default for rpm builds, overwrite it
     locale="en_US"
   fi
-  cp locale/${locale}/Viewmol /usr/X11R6/lib/X11/app-defaults
-  chmod a+r /usr/X11R6/lib/X11/app-defaults/Viewmol
+  cp locale/${locale}/Viewmol $ROOT/X11R6/lib/X11/app-defaults
+  chmod a+r $ROOT/X11R6/lib/X11/app-defaults/Viewmol
 fi