From patchwork Wed May 30 13:03:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 922790 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-92827-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="t1TkBgMO"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40wrPn6fPKz9s1R for ; Wed, 30 May 2018 23:03:41 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= nVOBOkWqNHDGy8FbbrElTPoo6KoEEXjuNsnYv+ebxOTzics6rLTmqBPeFnMnaRd6 QAsIKvMThNUrrFR2Hku/Z6r41pqmT0an96YQpEzH8O2kFqhIex0d1FKBJStEEqZp X11CPqa/Eb0ky6Chzn3QODOxv0ZJG5vp6tS55m63cAQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=BlSy7a RTTL+wl7GrRcr39gcaKBI=; b=t1TkBgMO9tZ6TAYygSDCv9j8mYo6tzLf7swGP3 dctJ/xOjjxa6aFAZQwk8SnS+8KH+9JwZC4Xn3lMQLXlcYhyViWcB8TPl2kGktuGQ vY6Ou0jbEWvETeI+CY/R4zOP7Fw1GjspPz7NoxaYJu+xA7/JNIaU8y/ba8HOmEcP bMRDA= Received: (qmail 114422 invoked by alias); 30 May 2018 13:03:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 114413 invoked by uid 89); 30 May 2018 13:03:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mx1.redhat.com Date: Wed, 30 May 2018 15:03:32 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] scripts/update-abilist.sh: Accept empty list of files to patch User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20180530130332.9E060415488E6@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) Commit b289cd9db8286fa6c670104dd5dfcfc68d5d00d6 (“Ignore absolute symbols in ABI tests.”) broke “make update-all-abi” because an empty list of files is now passed to scripts/update-abilist.sh. 2018-05-30 Florian Weimer * scripts/update-abilist.sh: Accept empty list of files to patch. diff --git a/scripts/update-abilist.sh b/scripts/update-abilist.sh index 68d469b3e5..28953bfe28 100644 --- a/scripts/update-abilist.sh +++ b/scripts/update-abilist.sh @@ -20,9 +20,12 @@ set -e export LC_ALL=C -if [ $# -lt 3 ]; then +if [ $# -lt 2 ]; then echo "usage: $0 OLD-FILE NEW-FILE FILES-TO-BE-PATCHED..." 1>&2 exit 2 +elif [ $# -eq 2 ]; then + echo "info: no files to patch" 1>&2 + exit 0 fi old_file="$1"