[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/13] configure: Don't create symlinks to nonexiste
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 01/13] configure: Don't create symlinks to nonexistent targets |
Date: |
Fri, 24 Jun 2011 17:56:37 +0100 |
From: Peter Maydell <address@hidden>
When we create the symlinks to source tree files, don't create them
if the file is not actually present in the source tree; this will
happen if the file is in a git submodule that wasn't checked out.
This also avoids the odd effect where an in-source-tree configure
will end up creating the missing file as a symlink to itself.
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
configure | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 856b41e..4fa9a57 100755
--- a/configure
+++ b/configure
@@ -3479,7 +3479,9 @@ for bios_file in $source_path/pc-bios/*.bin
$source_path/pc-bios/*.rom $source_p
done
mkdir -p $DIRS
for f in $FILES ; do
- test -e $f || symlink $source_path/$f $f
+ if [ -e "$source_path/$f" ] && ! [ -e "$f" ]; then
+ symlink "$source_path/$f" "$f"
+ fi
done
# temporary config to build submodules
--
1.7.5.4
- [Qemu-devel] [PULL 00/13] Trivial patches for June 16 to June 24 2011, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 02/13] Align dummy display to fixed-size active console, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 01/13] configure: Don't create symlinks to nonexistent targets,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 03/13] sheepdog: qemu_bh_new() can't return null pointer, drop check, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 04/13] Strip trailing '\n' from error_report()'s first argument, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 05/13] qemu-img: Don't prepend qemu-img to error messages twice., Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 07/13] blockdev: Put space after comma in error message, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 06/13] Spell "unkown" correctly in error_report() arguments, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 08/13] MAINTAINERS: Fix typo in email address, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 09/13] Fix comment typos in hw/armv7m.c, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 10/13] Do not include compatfd for WIN32, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 11/13] w32: Remove redundant definitions of PRI*64, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 12/13] exec: last_first_tb was only used in !ONLY_USER case, Stefan Hajnoczi, 2011/06/24