base 1.42 KB
Newer Older
1
#!/bin/bash
2 3 4 5 6 7 8 9 10
#########################################################
# 							#
# This is BashStyle-NG  				#
#							#
# Licensed under GNU GENERAL PUBLIC LICENSE v3    	#
#							#
# Copyright 2007 - 2015 Christopher Bratusek		#
#							#
#########################################################
11

12 13 14
APP_NAME="BashStyle-NG"
APP_VERSION=8.99
APP_CODENAME="Hotride"
15
APP_LANGUAGES="de"
16

17
CFG_VERSION="4.3.2"
18

19 20 21 22
if [[ -d "/usr/lib/girepository-1.0/" ]]; then
	export GIRPATH="/usr/lib/girepository-1.0/"
elif [[ -d "/usr/lib64/girepository-1.0/" ]]; then
	export GIRPATH="/usr/lib64/girepository-1.0/"
23 24
fi

25 26
PREFIX="/usr"
MODE=user
27
QUIET=false
28
PYTHON=$(which python3 || which python)
29

30 31 32
BINDIR="${PREFIX}/bin"
PCDIR="${PREFIX}/share/pkgconfig/"
DATADIR="${PREFIX}/share/"
33
PROFILEDIR="/etc/"
34

35 36 37 38
for lang in ${APP_LANGUAGES[@]}; do
	LC_MESSAGES_DIRS="${LC_MESSAGES_DIRS} ${lang}/LC_MESSAGES/"
done

39 40
export OLDPATH=${PATH}
export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
41 42 43 44

export_result ()
{

45 46 47 48 49 50 51 52 53 54 55
	echo -e "PREFIX=\"${PREFIX}\"
DATADIR=\"${DATADIR}/bashstyle-ng/\"
DATADIR_LIST=( ui rc/{functions,internal,settings,styles} termcap/{bar,body} vim/{colors} )
PROFILEDIR=\"${PROFILEDIR}/\"
BINDIR=\"${BINDIR}\"
LOCALEDIR=\"${DATADIR}/locale/\"
LOCALEDIR_LIST=( ${LC_MESSAGES_DIRS} )
ICONDIR=\"${DATADIR}/icons/hicolor/32x32/apps/\"
PCDIR=\"${PCDIR}/\"
BASHFILE=\"${BASHFILE}\"
APP_LANGUAGES=\"${APP_LANGUAGES}\"" | sed -e 's,\/\/,\/,g' >> ${PWD}/.configure/results
56 57

}