forked from Xastir/Xastir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-xastir
executable file
·79 lines (59 loc) · 2.79 KB
/
update-xastir
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#! /bin/sh
# Copyright (C) 2000-2023 The Xastir Group
# See README.sudo for instructions on setting up SUDO for
# Linux/Unix/MacOSX systems, specifically the /etc/sudoers file.
CYGWIN=false
uname=`uname`
case "$uname" in
CYGWIN*)
CYGWIN=true
;;
*)
;;
esac
(date 2>&1) | tee make.log
(git pull 2>&1) | tee -a make.log
echo "" | tee -a make.log
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
(./bootstrap.sh 2>&1) | tee -a make.log
echo "" | tee -a make.log
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
(mkdir -p build 2>&1) | tee -a make.log
echo "" | tee -a make.log
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
(cd build; ../configure 2>&1) | tee -a make.log
echo "" | tee -a make.log
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
if $CYGWIN
then
(echo "************************************") | tee -a make.log
(echo "Building for Cygwin Operating System") | tee -a make.log
(echo "************************************") | tee -a make.log
(cd build; make clean 2>&1) | tee -a make.log
echo "" | tee -a make.log
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
(cd build; make install 2>&1) | tee -a make.log
# chmod 4755 /usr/local/bin/xastir
chmod 755 /usr/local/bin/xastir
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
else
(echo "************************************************") | tee -a make.log
(echo "Building for Unix/Linux/MacOSX Operating Systems") | tee -a make.log
(echo "************************************************") | tee -a make.log
(cd build; sudo make clean 2>&1) | tee -a make.log
echo "" | tee -a make.log
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
(cd build; make 2>&1) | tee -a make.log
(cd build; sudo make install-strip 2>&1) | tee -a make.log
# sudo chmod 4755 /usr/local/bin/xastir
sudo chmod 755 /usr/local/bin/xastir
echo "" | tee -a make.log
(date 2>&1) | tee -a make.log
fi