From 06cd2634a23bfac2c18e0ac94f78ff0702e56bca Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Sun, 7 Oct 2007 17:22:56 +0000 Subject: [PATCH] Do not create directories, if they exist --- toolchain/gcc/gcc-uclibc-3.x.mk | 2 +- toolchain/gcc/gcc-uclibc-4.x.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk index 3e530795e6..6d615f664b 100644 --- a/toolchain/gcc/gcc-uclibc-3.x.mk +++ b/toolchain/gcc/gcc-uclibc-3.x.mk @@ -277,7 +277,7 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled -C $(GCC_BUILD_DIR2) install if [ -d "$(STAGING_DIR)/usr/lib64" ]; then \ if [ ! -e "$(STAGING_DIR)/usr/lib" ]; then \ - mkdir "$(STAGING_DIR)/usr/lib"; \ + mkdir -p "$(STAGING_DIR)/usr/lib"; \ fi; \ mv "$(STAGING_DIR)/usr/lib64/"* "$(STAGING_DIR)/usr/lib/"; \ rmdir "$(STAGING_DIR)/usr/lib64"; \ diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk index e646c515e7..4621490281 100644 --- a/toolchain/gcc/gcc-uclibc-4.x.mk +++ b/toolchain/gcc/gcc-uclibc-4.x.mk @@ -290,7 +290,7 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled -C $(GCC_BUILD_DIR2) install if [ -d "$(STAGING_DIR)/lib64" ]; then \ if [ ! -e "$(STAGING_DIR)/lib" ]; then \ - mkdir "$(STAGING_DIR)/lib"; \ + mkdir -p "$(STAGING_DIR)/lib"; \ fi; \ mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/"; \ rmdir "$(STAGING_DIR)/lib64"; \ -- 2.30.2