updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / alkitab / patch.alkitab
blob0378e9f370e3d9b448ca5846e6f06a94e87591ba
1 --- ../pkg/opt/alkitab/bin/alkitab    2009-06-29 23:00:18.000000000 +0200
2 +++ alkitab    2009-07-24 14:40:28.000000000 +0200
3 @@ -48,6 +48,25 @@
4      . "${userdir}/etc/$APPNAME".conf
5  fi
6  
7 +#Arch Linux specific: path user config file to contain system wide book location
8 +#
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
16 +    #append it
17 +    echo "book-paths=/opt/alkitab/books" >> "${_conf}"
18 +  fi
19 +else
20 +  #the file does not exist
21 +  mkdir -p `dirname "${_conf}"` #make sure the dir exists
22 +  echo "book-paths=/opt/alkitab/books" > "${_conf}"
23 +fi
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"