]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
scripts/update-abilist.sh: Accept empty list of files to patch
authorFlorian Weimer <fweimer@redhat.com>
Thu, 14 Jun 2018 07:37:31 +0000 (09:37 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 14 Jun 2018 07:37:31 +0000 (09:37 +0200)
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.

ChangeLog
scripts/update-abilist.sh

index d094d20cfd337d892441091227e89b0b3c72b44e..ad08fe932ae77fbd9a96104b22b7bf5c4922afff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-06-14  Florian Weimer  <fweimer@redhat.com>
+
+       * scripts/update-abilist.sh: Accept empty list of files to patch.
+
 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
index 68d469b3e580558d725de970813e9af9d9ec66c2..28953bfe28789e9eb1637030663ad6d2520f6736 100644 (file)
 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"