Mercurial > dedupe
view setup.sh @ 89:cfd2a417475a
Avoid multiple filesystem searches.
Some cosmetics.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Mon, 21 Oct 2013 16:19:23 +0200 |
| parents | aae83c0a771d |
| children | a591accb07b5 |
line wrap: on
line source
#!/bin/sh ADD_DEFINITION() { KEY=$1 VALUE=$(eval "echo \${${KEY}}") if [ -n "${VALUE}" ] then DEFINITIONS="${DEFINITIONS} -D${KEY}=${VALUE}" fi } LOCATION=$(dirname $0) if [ -f ~/.auto_cmake ] then . ~/.auto_cmake fi DEFINITIONS="" ADD_DEFINITION BOOST_ROOT ADD_DEFINITION QT_QMAKE_EXECUTABLE eval "cmake ${DEFINITIONS} ${LOCATION}"
