]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
scripts/clean-includes: Skip symbolic links
authorMarkus Armbruster <armbru@redhat.com>
Thu, 2 Feb 2023 13:38:13 +0000 (14:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 8 Feb 2023 06:16:23 +0000 (07:16 +0100)
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 <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20230202133830.2152150-4-armbru@redhat.com>

scripts/clean-includes

index 8e8420d785074c31b1e5ec3e1f3100acb58b4449..f0466a626208493458ad5ab619ec891f610edfd2 100755 (executable)
@@ -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