Do not create directories, if they exist

This commit is contained in:
Ulf Samuelsson 2007-10-07 17:22:56 +00:00
parent 5cfb2f794f
commit 06cd2634a2
2 changed files with 2 additions and 2 deletions

View File

@ -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"; \

View File

@ -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"; \