Mercurial > dedupe
view setup.sh @ 97:34f11b2a1178
Script to extract duplicates directly to the commandline.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 13 Feb 2014 14:51:06 +0100 |
| 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}"
