fixes up some problems with the documentation, allows the overriding of the qmake binary used during config

git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@126 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
John Toman
2009-12-26 00:57:26 +00:00
committed by virtuoussin13
parent 6ef389f5ab
commit 6b504e67b2
3 changed files with 35 additions and 9 deletions

View File

@ -57,6 +57,8 @@ Options:
--debug Causes Qjoypad to spit out debugging messages (debug messages
will be compiled in; to get rid of the messages you'll have
to recompile).
--qmake4bin=EXEC Overrides the qmake executable used by this script.
EXEC may be relative to PATH or an absolute pathname.
--help Show this message.
"; exit 0;;
--devdir=*) devdir=${arg##*=}
@ -81,15 +83,20 @@ Options:
--debug)
debug_option+="_DEBUG";
build_mode="debug";;
--qmake4bin=*) QMAKE_EXEC=${arg##*=};;
*) echo "Unrecognized argument: \"$arg\". Try ./config --help for help."
esac
done
$QMAKE_EXEC -makefile DEVDIR=$devdir PREFIX=$prefix \
if ( ! $QMAKE_EXEC -makefile DEVDIR=$devdir PREFIX=$prefix \
"DEFINES += $plain_keys $debug_option" \
INSTALL_PREFIX=${installdir}/${prefix}/ \
"CONFIG += $build_mode" \
qjoypad.pro
qjoypad.pro ); then
echo "Config failed. If you overrode the qmake exec, make sure it
is valid! Otherwise, email virtuoussin13@users.sourceforge.net for help";
exit 1;
fi
echo "
Configuring QJoyPad installation...