diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-06-14 09:37:31 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-06-14 09:37:31 +0200 |
commit | c59ee916a66299f23d81568c77d7af3be17d4b6c (patch) | |
tree | bf756ca8a5297395446e39292d9ce1e65d981c71 /scripts | |
parent | 06d1a8263d72dfb3e638cb98c92bee3405262f44 (diff) | |
download | glibc-c59ee916a66299f23d81568c77d7af3be17d4b6c.zip glibc-c59ee916a66299f23d81568c77d7af3be17d4b6c.tar.gz glibc-c59ee916a66299f23d81568c77d7af3be17d4b6c.tar.bz2 |
scripts/update-abilist.sh: Accept empty list of files to patch
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/update-abilist.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/update-abilist.sh b/scripts/update-abilist.sh index 68d469b..28953bf 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" |