Minor build fixes, again.

This commit is contained in:
Laurence Withers 2006-07-24 15:29:44 +01:00
parent 41d089472b
commit ff8f53193c
2 changed files with 4 additions and 1 deletions

View File

@ -259,7 +259,9 @@ do
echo "Cleaning..."
for dir in ${OUTPUT_DIRS}
do
do_cmd find ${dir} \( -type f -o -type l \) -exec rm {} \; || exit 1
[ -e "${dir}" ] && do_cmd \
find "${dir}" \( -type f -o -type l \) -exec rm {} \;
[ $? -ne 0 ] && exit $?
done
print_success "Done"
;;

View File

@ -13,6 +13,7 @@
# Get the directory of the repository (needed to include functions file)
cd "$(dirname $0)"
REPOS=$(dirname "$(pwd)")
[ -z "${VERBOSE}" ] && VERBOSE=0
source "${REPOS}/scripts/functions.sh" || exit 1