-
Notifications
You must be signed in to change notification settings - Fork 1
/
find_moc_and_uic_paths.sh
executable file
·45 lines (37 loc) · 1.22 KB
/
find_moc_and_uic_paths.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
if which $1 >/dev/null 2>/dev/null ; then
if $1 -v 2>&1 | grep Qt\ $RADIUM_QT_VERSION >/dev/null ; then
echo `which $1`
exit 0
elif $1 -v 2>&1 | grep version\ $RADIUM_QT_VERSION >/dev/null ; then
echo `which $1`
exit 0
elif $1 -v 2>&1 | grep qt$RADIUM_QT_VERSION >/dev/null ; then
echo `which $1`
exit 0
elif $1 -v 2>&1 | grep $1\ $RADIUM_QT_VERSION >/dev/null ; then
echo `which $1`
exit 0
fi
fi
if which $1-qt$RADIUM_QT_VERSION >/dev/null 2>/dev/null ; then
echo `which $1-qt$RADIUM_QT_VERSION`
exit 0
fi
if [ -f /etc/fedora-release ] ; then
if uname -a |grep x86_64 >/dev/null ; then
echo /usr/bin/$1-qt$RADIUM_QT_VERSION
else
echo /usr/bin/$1-qt$RADIUM_QT_VERSION
fi
elif grep -i ubuntu /etc/lsb-release >/dev/null 2>/dev/null ; then
echo $1-qt$RADIUM_QT_VERSION
elif grep -i debian /etc/lsb-release >/dev/null 2>/dev/null ; then
echo $1-qt$RADIUM_QT_VERSION
elif grep -i mint /etc/lsb-release >/dev/null 2>/dev/null ; then
echo $1-qt$RADIUM_QT_VERSION
elif grep -i arch /etc/lsb-release >/dev/null 2>/dev/null ; then
echo $1-qt$RADIUM_QT_VERSION
else
echo $1-qt$RADIUM_QT_VERSION
fi