Update method of getting absolute paths to error out if they do not exist

This commit is contained in:
Wilson J. Holmes 2024-10-04 22:41:37 -04:00
parent 63f532a5bf
commit a89a9b610a
No known key found for this signature in database
GPG Key ID: EC07FA96BDAF8C4A
1 changed files with 2 additions and 2 deletions

View File

@ -597,8 +597,8 @@ mkdir -p $BUILD
# qmake needs absolute paths, so we get them now:
# OSX does not have `readlink -f` command. Use equivalent Perl script.
if [ "$IS_MAC" = "no" ]; then
BUILD=`readlink -f $BUILD`
BIN=`readlink -f $BIN`
BUILD=`realpath --canonicalize-existing $BUILD`
BIN=`realpath --canonicalize-existing $BIN`
else
BUILD=`perl -MCwd -le 'print Cwd::abs_path(shift)' $BUILD`
BIN=`perl -MCwd -le 'print Cwd::abs_path(shift)' $BIN`