diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-08-27 09:35:18 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-08-27 09:35:18 +0000 |
commit | 705687a73d3cae87c497078f395c0a0381d079b6 (patch) | |
tree | a2465d0c29a1808ccd5727deca77330a817d5974 /eclass/kde.eclass | |
parent | Marking ~ppc-macos (diff) | |
download | gentoo-2-705687a73d3cae87c497078f395c0a0381d079b6.tar.gz gentoo-2-705687a73d3cae87c497078f395c0a0381d079b6.tar.bz2 gentoo-2-705687a73d3cae87c497078f395c0a0381d079b6.zip |
Use [[ ]] instead of [ ] for tests.
Diffstat (limited to 'eclass/kde.eclass')
-rw-r--r-- | eclass/kde.eclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass index cfa44a6d8e1c..bb92a6bd0c42 100644 --- a/eclass/kde.eclass +++ b/eclass/kde.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.128 2005/08/24 22:52:59 greg_g Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.129 2005/08/27 09:35:18 flameeyes Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -144,12 +144,12 @@ kde_src_compile() { # If we're not a kde-base ebuild, then set up the /usr directories properly # Perhaps this could get changed later to use econf instead? - if [ $PREFIX = "/usr" ]; then + if [[ $PREFIX = "/usr" ]]; then myconf="${myconf} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib" fi # Use libsuffix instead of libdir to keep kde happy - if [ $(get_libdir) != "lib" ] ; then + if [[ $(get_libdir) != "lib" ]] ; then myconf="${myconf} --enable-libsuffix=$(get_libdir | sed s/lib//)" fi @@ -158,7 +158,7 @@ kde_src_compile() { || die "died running ./configure, $FUNCNAME:configure" # Seems ./configure add -O2 by default but hppa don't want that but we need -ffunction-sections - if [ "${ARCH}" = "hppa" ] + if [[ "${ARCH}" = "hppa" ]] then einfo Fixating Makefiles find ${S} -name Makefile | while read a; do sed -e s/-O2/-ffunction-sections/ -i "${a}" ; done @@ -183,11 +183,11 @@ kde_src_compile() { kde_src_install() { debug-print-function $FUNCNAME $* - [ -z "$1" ] && kde_src_install all + [[ -z "$1" ]] && kde_src_install all cd ${S} - while [ "$1" ]; do + while [[ "$1" ]]; do case $1 in make) |