From: Markus Armbruster Date: Thu, 2 Feb 2023 13:38:13 +0000 (+0100) Subject: scripts/clean-includes: Skip symbolic links X-Git-Tag: v8.0.0-rc0~66^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a7f0515fd8f12377622dbbda1e794f28511192d;p=thirdparty%2Fqemu.git scripts/clean-includes: Skip symbolic links When a symbolic link points to a file that needs cleaning, the script replaces the link with a cleaned regular file. Not wanted; skip them. We have a few symbolic links under subprojects/libvduse/ and subprojects/libvhost-user/. Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Reviewed-by: Eric Blake Message-Id: <20230202133830.2152150-4-armbru@redhat.com> --- diff --git a/scripts/clean-includes b/scripts/clean-includes index 8e8420d7850..f0466a62620 100755 --- a/scripts/clean-includes +++ b/scripts/clean-includes @@ -113,6 +113,10 @@ EOT files= for f in "$@"; do + if [ -L "$f" ]; then + echo "SKIPPING $f (symbolic link)" + continue + fi case "$f" in *.c.inc) # These aren't standalone C source files