1 --- ../pkg/opt/alkitab/bin/alkitab 2009-06-29 23:00:18.000000000 +0200
2 +++ alkitab 2009-07-24 14:40:28.000000000 +0200
4 . "${userdir}/etc/$APPNAME".conf
7 +#Arch Linux specific: path user config file to contain system wide book location
9 +_conf="${userdir}/config/Preferences/kiyut/alkitab/options/bookviewer.properties"
10 +if [ -f "${_conf}" ] ; then
11 + #check if the file contains the key book-paths
12 + #if it does, then either the system path is there,
13 + #or the user removed it from the list of paths
14 + grep "book-paths=" "${_conf}" &> /dev/null
15 + if [ "$?" -ne "0" ]; then
17 + echo "book-paths=/opt/alkitab/books" >> "${_conf}"
20 + #the file does not exist
21 + mkdir -p `dirname "${_conf}"` #make sure the dir exists
22 + echo "book-paths=/opt/alkitab/books" > "${_conf}"
24 +#End arch linux patch
26 if [ -n "$jdkhome" -a \! -d "$jdkhome" -a -d "$progdir/../$jdkhome" ]; then
27 # #74333: permit jdkhome to be defined as relative to app dir
28 jdkhome="$progdir/../$jdkhome"