|
Revision 2552, 0.5 kB
(checked in by ahodgkinson, 13 months ago)
|
|
digitalme: Added 'clean' script.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | ./clean |
|---|
| 4 | |
|---|
| 5 | echo "Checking for CMake ..." |
|---|
| 6 | cmake_path="" |
|---|
| 7 | |
|---|
| 8 | if [ -f /usr/local/bin/cmake ] |
|---|
| 9 | then |
|---|
| 10 | cmake_path="/usr/local/bin/cmake" |
|---|
| 11 | fi |
|---|
| 12 | |
|---|
| 13 | if [ -f /usr/bin/cmake ] |
|---|
| 14 | then |
|---|
| 15 | cmake_path="/usr/bin/cmake" |
|---|
| 16 | fi |
|---|
| 17 | |
|---|
| 18 | if [ -f /bin/cmake ] |
|---|
| 19 | then |
|---|
| 20 | cmake_path="/bin/cmake" |
|---|
| 21 | fi |
|---|
| 22 | |
|---|
| 23 | if [ -n "$cmake_path" ] |
|---|
| 24 | then |
|---|
| 25 | echo "CMake is installed ($cmake_path), configuring project ..." |
|---|
| 26 | cmake . $1 $2 $3 $4 $5 |
|---|
| 27 | else |
|---|
| 28 | echo -e "\033[31m-- cmake is not installed, please install the correct cmake package or download it from \"www.cmake.org\"\033[0m" |
|---|
| 29 | fi |
|---|