Try to catch the case of a non-writable source directory before

running configure.
This commit is contained in:
Alexandre Julliard 2003-09-29 20:25:47 +00:00
parent f3434c2539
commit 1bb7a9f736
1 changed files with 8 additions and 0 deletions

View File

@ -183,6 +183,14 @@ then {
} }
fi fi
if [ ! -w . ]
then {
echo "The source directory is not writable. You probably extracted the sources as root."
echo "You should remove the source tree and extract it again as a normal user."
exit 1
}
fi
# check whether RPM installed, and if it is, remove any old wine rpm. # check whether RPM installed, and if it is, remove any old wine rpm.
hash rpm &>/dev/null hash rpm &>/dev/null
RET=$? RET=$?