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

3 4
export xVERSION=8.2
CODENAME="Fate of the Galaxy"
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 19
PYTHON=$(which python)

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
	if [[ -e $PWD/.configure/results ]]; then
		rm $PWD/.configure/results
34 35
	fi

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

}