From b6a73e2ea280719281f246af363f1bce97306f82 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Mon, 5 Feb 2007 13:51:11 +0000 Subject: [PATCH] Fix build system again --- make.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/make.sh b/make.sh index 2aca565..4ed8629 100755 --- a/make.sh +++ b/make.sh @@ -178,7 +178,8 @@ build_dir_tree_recurse() { if [ $? -ne 0 ] then build_dir_tree_recurse $(dirname "${DIR}") || return 1 - mkdir "${DIR}" + echo " Creating directory '${DIR}'" + do_cmd mkdir "${DIR}" if [ $? -ne 0 ] then print_failure "Failed to create directory '${DIR}'" @@ -198,9 +199,9 @@ build_dir_tree_recurse() { install_file() { # figure out if $2 is a directory or not DEST_FILE="${INSTALL_PREFIX}$2" - [ -d "$2" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)" + [ -d "${DEST_FILE}" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)" - echo " Installing: '$1' -> '$2'" + echo " Installing: '$1' -> '${DESTFILE}'" do_cmd cp -fP "$1" "${DEST_FILE}" || return 1 do_cmd chmod "$3" "${DEST_FILE}" || return 1 @@ -213,9 +214,9 @@ install_file() { # install_file(), only we strip out the #line directives. install_header() { DEST_FILE="${INSTALL_PREFIX}$2" - [ -d "$2" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)" + [ -d "${DEST_FILE}" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)" - echo " Installing header: '$1' -> '$2'" + echo " Installing: '$1' -> '${DESTFILE}'" do_cmd rm -f ${DEST_FILE} || exit 1 do_cmd_redir ${DEST_FILE} sed -e "s,^#line.*,," $1 || exit 1 do_cmd chmod "$3" "${DEST_FILE}" || return 1