comparison packaging/linux-installer.inc.in @ 727:feaabee15e72

Preliminary implemented SYSDATAPATH.
author Sascha Wilde <wilde@intevation.de>
date Thu, 03 Jul 2014 10:17:56 +0200
parents ce3e33e66a17
children 2d64ff7e22e8
comparison
equal deleted inserted replaced
726:3777482dc306 727:feaabee15e72
5 DEFAULT_PREFIX="$HOME/TrustBridge" 5 DEFAULT_PREFIX="$HOME/TrustBridge"
6 SYSDEFAULT_PREFIX="/usr/local" 6 SYSDEFAULT_PREFIX="/usr/local"
7 CFGPATH="${XDG_CONFIG_HOME:-$HOME/.config}/BSI" 7 CFGPATH="${XDG_CONFIG_HOME:-$HOME/.config}/BSI"
8 DATAPATH="${XDG_DATA_HOME:-$HOME/.local/share}/BSI/TrustBridge" 8 DATAPATH="${XDG_DATA_HOME:-$HOME/.local/share}/BSI/TrustBridge"
9 SYSCFGPATH="/etc/TrustBridge" 9 SYSCFGPATH="/etc/TrustBridge"
10 # FIXME:
11 # Set the real data path for system wide installation once its known.
12 SYSDATAPATH="$DATAPATH"
10 INSTCFGNAME="TrustBridge-inst.cfg" 13 INSTCFGNAME="TrustBridge-inst.cfg"
11 FORCE=0 14 FORCE=0
12 SYSINST=0 15 SYSINST=0
13 DEINSTALL=0 16 DEINSTALL=0
14 BINNAMES="###BINNAMES###" 17 BINNAMES="###BINNAMES###"
133 init_vars() 136 init_vars()
134 { 137 {
135 if [ $SYSINST -eq 1 ] ; then 138 if [ $SYSINST -eq 1 ] ; then
136 inst_default_prefix="$SYSDEFAULT_PREFIX" 139 inst_default_prefix="$SYSDEFAULT_PREFIX"
137 instcfg_path="${SYSCFGPATH}" 140 instcfg_path="${SYSCFGPATH}"
138 # TODO: where is the system wide installation data path? 141 instdata_path="${SYSDATAPATH}"
139 instdata_path="${SYSCFGPATH}"
140 else 142 else
141 inst_default_prefix="$DEFAULT_PREFIX" 143 inst_default_prefix="$DEFAULT_PREFIX"
142 instcfg_path="${CFGPATH}" 144 instcfg_path="${CFGPATH}"
143 instdata_path="${DATAPATH}" 145 instdata_path="${DATAPATH}"
144 fi 146 fi

http://wald.intevation.org/projects/trustbridge/