22f6eb45c7dc271f56afe0472eb4ff48d9923cac
[projects.git] / tools / make / cmake_check
1 #!/bin/bash
2 set -e
3 cd ../build
4 if [ -e debian/$paket.cmake ]
5 then
6         # do checks
7         if [ -e debian/$paket.build ]
8         then
9                 echo "cmake is not compatible with other builds. Remove $paket.build"
10                 exit 1
11         fi
12         if [ -e debian/$paket.prebuild ]
13         then
14                 echo "cmake is not compatible with other builds. Remove $paket.prebuild"
15                 exit 2
16         fi
17         
18         cp debian/$paket.cmake CMakeLists.txt
19         echo "make" > debian/$paket.build
20         chmod 755 debian/$paket.build
21         echo "cmake ." > debian/$paket.prebuild
22         chmod 755 debian/$paket.prebuild
23 fi
24