diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-02-02 14:38:13 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-02-08 07:16:23 +0100 |
commit | 6a7f0515fd8f12377622dbbda1e794f28511192d (patch) | |
tree | 0e4835e83b15ef8ec9edc23bf0d6e45fc5ff4652 /scripts | |
parent | 2555150244393a8cf433d6762c265b1e89c70be4 (diff) | |
download | qemu-6a7f0515fd8f12377622dbbda1e794f28511192d.zip qemu-6a7f0515fd8f12377622dbbda1e794f28511192d.tar.gz qemu-6a7f0515fd8f12377622dbbda1e794f28511192d.tar.bz2 |
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 <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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/clean-includes | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/clean-includes b/scripts/clean-includes index 8e8420d..f0466a6 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 |