base 1.32 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
export xVERSION=8.99
13
CODENAME="Hotride"
14 15 16

ERR_MSG=""

17 18 19 20
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/"
21 22
fi

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

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

33 34
export OLDPATH=${PATH}
export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
35 36 37 38

export_result ()
{

39 40 41
	echo -e "MODE=\"${MODE}\"\
\nPREFIX=\"${PREFIX}\"\
\nDATADIR=\"${DATADIR}/bashstyle-ng/\"\
42
\nDATADIR_LIST=( ui rc/{,ascii,functions,internal,settings,styles} termcap/{bar,body} vim/{,colors} )\
43 44 45
\nPROFILEDIR=\"${PROFILEDIR}/\"\
\nBINDIR=\"${BINDIR}\"\
\nLOCALEDIR=\"${DATADIR}/locale/\"\
46
\nLOCALEDIR_LIST=( {de,es,it,ru}/LC_MESSAGES/ )\
47 48 49 50
\nICONDIR=\"${DATADIR}/icons/hicolor/32x32/apps/\"\
\nPCDIR=\"${PCDIR}/\"\
\nBASHFILE=\"${BASHFILE}\"\
\nMISSING=( ${MISSING} )" | sed -e 's,\/\/,\/,g' >> ${PWD}/.configure/results
51 52

}