simplify configure (a bit) further

parent 26567e6e
......@@ -14,7 +14,7 @@ APP_VERSION=10.2.90
APP_CODENAME="Odyssey"
APP_LANGUAGES="de"
CFG_VERSION="4.3.8"
CFG_VERSION="4.4.0"
if [[ -d "/usr/lib/girepository-1.0/" ]]; then
export GIRPATH="/usr/lib/girepository-1.0"
......@@ -59,6 +59,8 @@ LOCALEDIR_LIST=( ${LC_MESSAGES_DIRS} )
ICONDIR=\"${DATADIR}/icons/hicolor/32x32/apps\"
DESKTOPDIR=\"${DATADIR}/applications\"
PCDIR=\"${PCDIR}\"
APP_LANGUAGES=\"${APP_LANGUAGES}\"" | sed -e 's,//,/,g' >> "${PWD}"/.configure/results
APP_LANGUAGES=\"${APP_LANGUAGES}\"" | \
sed -e 's,//,/,g' >> \
"${PWD}"/.configure/results
}
......@@ -20,26 +20,23 @@ done
rm -f "${PWD}"/.configure/results
xcount=0
while [[ ${xcount} -le $# ]]; do
case ${1} in
--prefix=* ) PREFIX="${1/*=}" ;;
--pcdir=* ) PCDIR="${1/*=}" ;;
--bindir=* ) BINDIR="${1/*=}" ;;
--docdir=* ) DOCDIR="${1/*=}" ;;
--mandir=* ) MANDIR="${1/*=}" ;;
--girpath=* ) GIRPATH="${1/*=}" ;;
--datadir=* ) DATADIR="${1/*=}" ;;
--python=* ) PYTHON="${1/*=}" ;;
for opt in ${@}; do
case ${opt} in
--prefix=* ) PREFIX="${opt/*=}" ;;
--pcdir=* ) PCDIR="${opt/*=}" ;;
--bindir=* ) BINDIR="${opt/*=}" ;;
--docdir=* ) DOCDIR="${opt/*=}" ;;
--mandir=* ) MANDIR="${opt/*=}" ;;
--girpath=* ) GIRPATH="${opt/*=}" ;;
--datadir=* ) DATADIR="${opt/*=}" ;;
--python=* ) PYTHON="${opt/*=}" ;;
--help ) help_message ;;
--no-postinstall ) DISABLE_POSTINSTALL=1
echo "DISABLE_POSTINSTALL=1" >> \
"${PWD}"/.configure/results ;;
esac
shift
xcount=$((xcount+1))
done
unset xcount
if [[ ${GIRPATH} == "" ]]; then
missing_girpath_message ; exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment