updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / oracle-datamodeler / java_home.patch
blobd7dd1b082d30a5109326f1d8a5901c60593ad5db
1 --- datamodeler.orig/bin/launcher.sh 2009-06-26 03:42:40.000000000 -0300
2 +++ datamodeler/bin/launcher.sh 2009-12-03 21:47:36.000000000 -0200
3 @@ -377,22 +377,24 @@ GetDefaultJDK()
4 # Once the new path for java has been determined, truncate the /bin/java
5 # ending portion of it and set javahome with the trucated path
7 - if [ -f "$tmpvar" ]
8 - then
9 - while [ -h "$tmpvar" ]
10 - do
11 - tmpvar2=`ls -ls "$tmpvar"`
12 - tmpvar2=`expr "$tmpvar2" : '.*-> \(.*\)$'`
13 - if [ `expr "$tmpvar2" : "\.\/"` -gt 0 -o `expr "$tmpvar2" : "\.\.\/"` -gt 0 -o `expr "$tmpvar2" : ".*/.*"` -le 0 ]
14 - then
15 - tmpvar="`dirname "$tmpvar"`/$tmpvar2"
16 - else
17 - tmpvar="$tmpvar2"
18 - fi
19 - done
20 - tmpvar=`expr "$tmpvar" : '\(.*\)\/bin\/[^\/]*$'`
21 - SetJavaHome "$tmpvar"
22 - fi
23 +# if [ -f "$tmpvar" ]
24 +# then
25 +# while [ -h "$tmpvar" ]
26 +# do
27 +# tmpvar2=`ls -ls "$tmpvar"`
28 +# tmpvar2=`expr "$tmpvar2" : '.*-> \(.*\)$'`
29 +# if [ `expr "$tmpvar2" : "\.\/"` -gt 0 -o `expr "$tmpvar2" : "\.\.\/"` -gt 0 -o `expr "$tmpvar2" : ".*/.*"` -le 0 ]
30 +# then
31 +# tmpvar="`dirname "$tmpvar"`/$tmpvar2"
32 +# else
33 +# tmpvar="$tmpvar2"
34 +# fi
35 +# done
36 +# tmpvar=`expr "$tmpvar" : '\(.*\)\/bin\/[^\/]*$'`
37 +# SetJavaHome "$tmpvar"
38 +# fi
39 + tmpvar=`expr "$tmpvar" : '\(.*\)\/bin\/[^\/]*$'`
40 + SetJavaHome "$tmpvar"
43 CheckJavaHome()