forked from twoconk/darwin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildtarball
95 lines (74 loc) · 1.87 KB
/
buildtarball
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/sh
#Darwin BuildTarball script
PLAT=`uname`
case $PLAT in
"Darwin")
echo "Do not use this script for building on MacOS X."
echo "Use the 'Buildit' or 'Buildit install' command instead."
exit 1
;;
*)
echo "Preparing for the Darwin "$PLAT" platform"
;;
esac
echo removing DarwinStreamingSrvr$1-$PLAT.tar.gz
if rm -f DarwinStreamingSrvr$1-$PLAT.tar.gz;
then :
fi
echo removing DarwinStreamingSrvr$1-$PLAT
if rm -rf DarwinStreamingSrvr$1-$PLAT;
then :
fi
echo removing StreamingProxy-$1-$PLAT.tar.gz
if rm -f StreamingProxy-$1-$PLAT.tar.gz;
then :
fi
echo removing StreamingProxy-$1-$PLAT
if rm -rf StreamingProxy-$1-$PLAT
then :
fi
#./Buildit clean
./Buildit
if [ ! -f DarwinStreamingServer ];
then
echo "DarwinStreamingServer failed to build!"
echo Buildit Failed. Exiting!
exit 1
fi
if [ ! -f PlaylistBroadcaster.tproj/PlaylistBroadcaster ];
then
echo "PlaylistBroadcaster failed to build!"
echo Buildit Failed. Exiting!
exit 1
fi
if [ ! -f MP3Broadcaster/MP3Broadcaster ];
then
echo "MP3Broadcaster failed to build!"
echo Buildit FAILED. Exiting!
exit 1
fi
if [ ! -f qtpasswd.tproj/qtpasswd ];
then
echo "qtpasswd failed to build!"
echo Buildit FAILED. Exiting!
exit 1
fi
if [ ! -d StreamingLoadTool ];
then
echo "FYI: There is no StreamingLoadTool folder."
fi
if [ -d StreamingLoadTool ];
then
if [ ! -f StreamingLoadTool/StreamingLoadTool ];
then
echo "StreamingLoadTool failed to build!"
fi
fi
./DSS_MakeRoot -f DarwinStreamingSrvr$1-$PLAT $1
tar cvf DarwinStreamingSrvr$1-$PLAT.tar DarwinStreamingSrvr$1-$PLAT
gzip DarwinStreamingSrvr$1-$PLAT.tar
./DSS_MakeProxyRoot StreamingProxy-$1-$PLAT
tar cvf StreamingProxy-$1-$PLAT.tar StreamingProxy-$1-$PLAT
gzip StreamingProxy-$1-$PLAT.tar
cp ./DeviceInfo.xml ./DarwinStreamingSrvr-Linux/
echo Success!