base 1.17 KB
Newer Older
1 2
#!/bin/bash

3 4
export xVERSION=8.5
CODENAME="Nice Sprites"
5 6 7

ERR_MSG=""

8 9 10 11
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/"
12 13
fi

14 15 16
PREFIX="/usr"
DIRINFO_ENABLE="false"
MODE=user
17
QUIET=false
18
PYTHON=$(which python3 || which python)
19

20 21 22 23
BINDIR="$PREFIX/bin"
PCDIR="$PREFIX/lib/pkgconfig/"
DATADIR="$PREFIX/share/"
DOCDIR="$DATADIR/doc/"
24
PROFILEDIR="/etc/"
25

26 27
export OLDPATH=$PATH
export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
28 29 30 31

export_result ()
{

32 33
	echo -e "MODE=\"$MODE\"\
\nPREFIX=\"$PREFIX\"\
34
\nDATADIR=\"$DATADIR/bashstyle-ng/\"\
35
\nDATADIR_LIST=( bin ui rc/{,ascii,dirinfo,functions,internal,settings,styles} terminfo/{,b,m,n} vim/{,colors} )\
36 37 38
\nPROFILEDIR=\"$PROFILEDIR/\"\
\nBINDIR=\"$BINDIR\"\
\nLOCALEDIR=\"$DATADIR/locale/\"\
39
\nLOCALEDIR_LIST=( {de,es,it,ru}/LC_MESSAGES/ )\
40 41
\nICONDIR=\"$DATADIR/icons/hicolor/32x32/apps/\"\
\nDOCDIR=\"$DOCDIR/bashstyle-ng/\"\
42
\nDOCDIR_LIST=( img img-style )\
43
\nPCDIR=\"$PCDIR/\"\
44
\nDIRINFO_ENABLE=\"$DIRINFO_ENABLE\"\
45
\nBASHFILE=\"$BASHFILE\"\
46
\nMISSING=($MISSING )" | sed -e 's,\/\/,\/,g' >> $PWD/.configure/results
47 48

}