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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2F366158019 for ; Sat, 2 Oct 2021 06:20:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57009E088C; Sat, 2 Oct 2021 06:20:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3DD0CE088C for ; Sat, 2 Oct 2021 06:20:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E4810342ADA for ; Sat, 2 Oct 2021 06:20:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A6DE105 for ; Sat, 2 Oct 2021 06:20:04 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1633155546.8df873bb66a2cb9813cc0a1b7b404ff85de26fce.vapier@gentoo> Subject: [gentoo-commits] proj/build-docbook-catalog:master commit in: / X-VCS-Repository: proj/build-docbook-catalog X-VCS-Files: build-docbook-catalog X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 8df873bb66a2cb9813cc0a1b7b404ff85de26fce X-VCS-Branch: master Date: Sat, 2 Oct 2021 06:20:04 +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: 238bff65-8782-43e9-9253-033bab82bde7 X-Archives-Hash: 08b8abaf70a33ae480d6cd06b2bd80c4 commit: 8df873bb66a2cb9813cc0a1b7b404ff85de26fce Author: Mike Frysinger gentoo org> AuthorDate: Sat Oct 2 06:19:06 2021 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Oct 2 06:19:06 2021 +0000 URL: https://gitweb.gentoo.org/proj/build-docbook-catalog.git/commit/?id=8df873bb switch from old `let` to newer `: $((...))` syntax Signed-off-by: Mike Frysinger gentoo.org> build-docbook-catalog | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build-docbook-catalog b/build-docbook-catalog index 6950f3e..669cbf8 100755 --- a/build-docbook-catalog +++ b/build-docbook-catalog @@ -354,21 +354,21 @@ populate_entities() { while [[ ${i} -lt ${#entities[@]} || ${j} -lt ${#avail[@]} ]]; do if [[ ${i} -ge ${#entities[@]} ]]; then echo "Warning: Extra ISO entities file: ${avail[j]}" - let j=j+1 + : $(( j += 1 )) elif [[ ${j} -ge ${#avail[@]} ]]; then echo "Warning: Entities file not found: ${entities[i]}" - let i=i+2 + : $(( i += 2 )) elif [[ ${avail[j]} < ${entities[i]} ]]; then echo "Warning: Extra ISO entities file: ${avail[j]}" - let j=j+1 + : $(( j += j + 1 )) elif [[ ${entities[i]} < ${avail[j]} ]]; then echo "Warning: Entities file not found: ${entities[i]}" - let i=i+2 + : $(( i += i + 2 )) elif [[ ${entities[i]} == ${avail[j]} ]]; then xmlcatalog --noout --add "public" "${entities[i+1]}" \ "file://${isodir}/${entities[i]}" "${ROOT}${CATALOG}" - let j=j+1 - let i=i+2 + : $(( j += j + 1 )) + : $(( i += i + 2 )) else error "${0}: whoah, shouldn't be here" fi