Skip to contentSkip to conversation

runqemu-extract-sdk: normalize paths to improve output

PATCH New Chen Qi 1 participant 2 messages Jul 3, 2014

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover runqemu-extract-sdk: normalize paths to improve output

The following changes since commit c36d459f0d40bdbd3ba809835e0475e8992bc778:

python3: fix builtins imports (2014-06-30 16:35:03 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib ChenQi/runqemu-extract-sdk-paths
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/runqemu-extract-sdk-paths

Chen Qi (1):
runqemu-extract-sdk: normalize paths to improve output

 scripts/runqemu-extract-sdk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/1 runqemu-extract-sdk: normalize paths to improve output

Previously, we would have output like below from runqemu-extract-sdk.

Creating directory /home/chenqi/poky/build-systemd/./nfs-root

Normalize paths for runqemu-extract-sdk so that we have output like below.

Creating directory /home/chenqi/poky/build-systemd/nfs-root

---
 scripts/runqemu-extract-sdk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/runqemu-extract-sdk +2 -1
index 4ce906a..32ddd48 100755
@@ -49,7 +49,7 @@ fi
 
 # Convert SDK_ROOTFS_DIR to a full pathname
 if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then
-	SDK_ROOTFS_DIR=$(pwd)/$SDK_ROOTFS_DIR
+	SDK_ROOTFS_DIR=$(readlink -f $(pwd)/$SDK_ROOTFS_DIR)
 fi
 
 TAR_OPTS=""
@@ -74,6 +74,7 @@ if [ ! -d "$SDK_ROOTFS_DIR" ]; then
 fi
 
 pseudo_state_dir="$SDK_ROOTFS_DIR/../$(basename "$SDK_ROOTFS_DIR").pseudo_state"
+pseudo_state_dir="$(readlink -f $pseudo_state_dir)"
 
 if [ -e "$pseudo_state_dir" ]; then
 	echo "Error: $pseudo_state_dir already exists!"
Signature · 1 line
1.7.9.5