-
Notifications
You must be signed in to change notification settings - Fork 14
/
configure
executable file
·29 lines (23 loc) · 747 Bytes
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
echo -e "\e[31m***************************************************\e[m"
echo -e "\e[31m****** Configure script has been deprecated. ******\e[m"
echo -e "\e[31m****** Use cmake instead. ******\e[m"
echo -e "\e[31m***************************************************\e[m"
echo
if [ ! $# -eq 0 ];
then
echo -e "\e[31mThe configure script for cmake migration don't support options and args.\e[m"
echo -e "\e[31m($# given)\e[m"
exit 1
fi
which cmake > /dev/null 2> /dev/null
if [ ! $? -eq 0 ];
then
echo -e "\e[31mCMake not found.\e[m"
echo -e "\e[31mInstall cmake and try again.\e[m"
echo -e "\e[31m e.g. on Ubuntu: sudo apt-get install cmake\e[m"
exit 1
fi
cwd=`dirname "$0"`
echo "$ cmake $cwd"
cmake $cwd