forked from mercutiodesign/texmaker-3.3.3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.sh
executable file
·38 lines (35 loc) · 1019 Bytes
/
BUILD.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
#!/bin/sh
echo "Texmaker compilation :"
echo "----------------------------------------"
echo "Enter path to QT4 (/usr/lib/qt4 or ...):"
read QTDIR
echo "Enter SYSTEM (1: UNIX ; 2: MACOSX) :"
read SYSTEM
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
export QTDIR PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH
if [ "$SYSTEM" = 1 ]
then
echo "Enter PREFIX (/usr , /usr/local or /opt) :"
read PREFIX
echo "Enter DIRECTORY for the desktop file (/usr/share/applications) :"
read DESKTOPDIR
echo "Enter DIRECTORY for the icon file (/usr/share/pixmaps) :"
read ICONDIR
qmake -unix PREFIX=$PREFIX DESKTOPDIR=$DESKTOPDIR ICONDIR=$ICONDIR texmaker.pro
make
make install
echo "Compilation and installation done"
# set the -spec option, if necessary. Ex : qmake -unix -spec linux-g++ PREFIX=$PREFIX texmaker.pro
exit 0
fi
if [ "$SYSTEM" = 2 ]
then
qmake -macx -spec macx-g++ texmaker.pro
make
make install
echo "Compilation and installation done"
exit 0
fi
exit 0