Sun, 17 Sep 2023 12:34:45 +0200
simplify parameter substitution
test/make/configure.vm | file | annotate | diff | comparison | revisions |
--- a/test/make/configure.vm Sun Sep 17 12:19:52 2023 +0200 +++ b/test/make/configure.vm Sun Sep 17 12:34:45 2023 +0200 @@ -136,21 +136,21 @@ ## Begin unparsed content. ** #[[ # set dir variables -BINDIR=${BINDIR:-"$EPREFIX/bin"} -SBINDIR=${SBINDIR:-"$EPREFIX/sbin"} -LIBDIR=${LIBDIR:-"$EPREFIX/lib"} -LIBEXECDIR=${LIBEXECDIR:-"$EPREFIX/libexec"} -DATADIR=${DATADIR:-"$PREFIX/share"} -SYSCONFDIR=${SYSCONFDIR:-"$PREFIX/etc"} -SHAREDSTATEDIR=${SHAREDSTATEDIR:-"$PREFIX/com"} -LOCALSTATEDIR=${LOCALSTATEDIR:-"$PREFIX/var"} -INCLUDEDIR=${INCLUDEDIR:-"$PREFIX/include"} -INFODIR=${INFODIR:-"$PREFIX/info"} -MANDIR=${MANDIR:-"$PREFIX/man"} +: ${BINDIR:="$EPREFIX/bin"} +: ${SBINDIR:="$EPREFIX/sbin"} +: ${LIBDIR:="$EPREFIX/lib"} +: ${LIBEXECDIR:="$EPREFIX/libexec"} +: ${DATADIR:="$PREFIX/share"} +: ${SYSCONFDIR:="$PREFIX/etc"} +: ${SHAREDSTATEDIR:="$PREFIX/com"} +: ${LOCALSTATEDIR:="$PREFIX/var"} +: ${INCLUDEDIR:="$PREFIX/include"} +: ${INFODIR:="$PREFIX/info"} +: ${MANDIR:="$PREFIX/man"} # Test for availability of pkg-config PKG_CONFIG=`command -v pkg-config` -PKG_CONFIG=${PKG_CONFIG:-"false"} +: ${PKG_CONFIG:="false"} # Simple uname based platform detection # $PLATFORM is used for platform dependent dependency selection @@ -172,7 +172,7 @@ if echo "$OS" | grep -i "MINGW" > /dev/null; then PLATFORM="windows mingw" fi -PLATFORM=${PLATFORM:-"unix"} +: ${PLATFORM:="unix"} PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -` echo "$PLATFORM_NAME"