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

12
APP_NAME="BashStyle-NG"
13
APP_VERSION=10.1
14
APP_CODENAME="Victory Forever"
15
APP_LANGUAGES="de"
16

17
CFG_VERSION="4.3.8"
18

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

25
PREFIX="/usr"
26
PYTHON=$(which python3 || which python2 || which python)
27

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

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

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

40
for lang in "${APP_LANGUAGES[@]}"; do
41
	LC_MESSAGES_DIRS="${LC_MESSAGES_DIRS} ${lang}/LC_MESSAGES"
42 43
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
prefix=\"${PREFIX}\"
52
DATADIR=\"${DATADIR}/bashstyle-ng\"
53
DATADIR_LIST=( ui rc/{2048,functions,internal,settings,styles} vim/colors )
54 55
DOCDIR=\"${DOCDIR}/bashstyle-ng\"
MANDIR=\"${MANDIR}/man1\"
56
BINDIR=\"${BINDIR}\"
57
LOCALEDIR=\"${DATADIR}/locale\"
58
LOCALEDIR_LIST=( ${LC_MESSAGES_DIRS} )
59 60 61
ICONDIR=\"${DATADIR}/icons/hicolor/32x32/apps\"
DESKTOPDIR=\"${DATADIR}/applications\"
PCDIR=\"${PCDIR}\"
62
APP_LANGUAGES=\"${APP_LANGUAGES}\"" | sed -e 's,//,/,g' >> "${PWD}"/.configure/results
63 64

}