From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A11D2158090 for ; Thu, 5 May 2022 07:32:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45381E0718; Thu, 5 May 2022 07:32:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 211E3E0718 for ; Thu, 5 May 2022 07:32:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0FEB2341BCC for ; Thu, 5 May 2022 07:32:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 68787449 for ; Thu, 5 May 2022 07:32:26 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1651735937.f16593b366ff0061d602f4dc792a2e2a26006733.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/octaveforge.eclass X-VCS-Directories: eclass/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: f16593b366ff0061d602f4dc792a2e2a26006733 X-VCS-Branch: dev Date: Thu, 5 May 2022 07:32:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 80d973d2-f317-4492-8108-70378fd98be6 X-Archives-Hash: 37af56685bba6d631606d7d68c2fb511 commit: f16593b366ff0061d602f4dc792a2e2a26006733 Author: Alessandro Barbieri gmail com> AuthorDate: Wed May 4 20:12:03 2022 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Thu May 5 07:32:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f16593b3 octaveforge.eclass: use bash style tests Signed-off-by: Alessandro Barbieri gmail.com> eclass/octaveforge.eclass | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eclass/octaveforge.eclass b/eclass/octaveforge.eclass index b9303884c..590f21a1c 100644 --- a/eclass/octaveforge.eclass +++ b/eclass/octaveforge.eclass @@ -58,7 +58,7 @@ SLOT="0" # function to unpack and set the correct S octaveforge_src_unpack() { default - if [ ! -d "${WORKDIR}/${P}" ]; then + if [[ ! -d "${WORKDIR}/${P}" ]]; then S="${WORKDIR}/${PN}" pushd "${S}" || die fi @@ -76,12 +76,12 @@ octaveforge_src_prepare() { sed -i 's|octave_config_info|__octave_config_info__|g' Makefile || die chmod 0755 "${S}/configure" || die - if [ -e "${S}/src/autogen.sh" ]; then + if [[ -e "${S}/src/autogen.sh" ]]; then pushd "${S}/src" || die ./autogen.sh || die 'failed to run autogen.sh' popd || die fi - if [ -e "${S}/src/Makefile" ]; then + if [[ -e "${S}/src/Makefile" ]]; then sed -i 's/ -s / /g' "${S}/src/Makefile" || die 'sed failed.' fi eapply_user @@ -93,7 +93,7 @@ octaveforge_src_prepare() { # documentation to docsdir octaveforge_src_install() { emake DESTDIR="${D}" DISTPKG='Gentoo' install - if [ -d doc/ ]; then + if [[ -d doc/ ]]; then dodoc -r doc/* fi } @@ -103,7 +103,7 @@ octaveforge_src_install() { # function that will rebuild the octave package database octaveforge_pkg_postinst() { einfo "Registering ${CATEGORY}/${PF} on the Octave package database." - if [ ! -d "${OCT_PKGDIR}" ] ; then + if [[ ! -d "${OCT_PKGDIR}" ]] ; then mkdir -p "${OCT_PKGDIR}" || die fi "${OCT_BIN}" -H -q --no-site-file --eval "pkg('rebuild');" &> /dev/null || die 'failed to register the package.' @@ -122,7 +122,7 @@ octaveforge_pkg_prerm() { " ) rm -f "${pkgdir}/packinfo/on_uninstall.m" || die - if [ -e "${pkgdir}/packinfo/on_uninstall.m.orig" ]; then + if [[ -e "${pkgdir}/packinfo/on_uninstall.m.orig" ]]; then mv "$pkgdir"/packinfo/on_uninstall.m{.orig,} || die cd "$pkgdir/packinfo" || die "${OCT_BIN}" -H -q --no-site-file --eval " @@ -137,7 +137,7 @@ octaveforge_pkg_prerm() { # function that will rebuild the octave package database octaveforge_pkg_postrm() { einfo 'Rebuilding the Octave package database.' - if [ ! -d "${OCT_PKGDIR}" ] ; then + if [[ ! -d "${OCT_PKGDIR}" ]] ; then mkdir -p "${OCT_PKGDIR}" || die fi "${OCT_BIN}" -H --silent --eval 'pkg rebuild' &> /dev/null || die 'failed to rebuild the package database'