base 1.57 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
APP_NAME="BashStyle-NG"
13 14
APP_VERSION=9.2
APP_CODENAME="Galvanize"
15
APP_LANGUAGES="de"
16

17
CFG_VERSION="4.3.7"
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
PREFIX="/usr"
26
PYTHON=$(which python3 || which python2 || which python)
27

28 29 30
BINDIR="${PREFIX}/bin"
PCDIR="${PREFIX}/share/pkgconfig/"
DATADIR="${PREFIX}/share/"
31 32
DOCDIR="${DATADIR}/doc/"
MANDIR="${DATADIR}/man/"
33

34 35 36 37 38 39
PYMINVER_P="2.7.0"
PYMAXVER_P="3.5.0"

PYMINVER=${PYMINVER_P//.}
PYMAXVER=${PYMAXVER_P//.}

40
for lang in "${APP_LANGUAGES[@]}"; do
41 42 43
	LC_MESSAGES_DIRS="${LC_MESSAGES_DIRS} ${lang}/LC_MESSAGES/"
done

44 45
export OLDPATH=${PATH}
export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
46 47 48 49

export_result ()
{

50
	echo -e "PREFIX=\"${PREFIX}\"
51
DATADIR=\"${DATADIR}/bashstyle-ng\"
52
DATADIR_LIST=( ui rc/{functions,internal,settings,styles} termcap/{bar,body} vim/colors )
53 54
DOCDIR=\"${DOCDIR}/bashstyle-ng\"
MANDIR=\"${MANDIR}/man1\"
55
BINDIR=\"${BINDIR}\"
56
LOCALEDIR=\"${DATADIR}/locale\"
57
LOCALEDIR_LIST=( ${LC_MESSAGES_DIRS} )
58 59 60
ICONDIR=\"${DATADIR}/icons/hicolor/32x32/apps\"
DESKTOPDIR=\"${DATADIR}/applications\"
PCDIR=\"${PCDIR}\"
61
APP_LANGUAGES=\"${APP_LANGUAGES}\"" | sed -e 's,//,/,g' >> "${PWD}"/.configure/results
62 63

}