forked from bigbluebutton/red5-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-red5.sh
executable file
·44 lines (33 loc) · 911 Bytes
/
build-red5.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
#!/bin/bash
set -x
set -e
RED5_SRC=$(pwd)
RED5_VER=1.0.7-M10
RED5_DIR=red5-server
RED5_WEBAPPS=${RED5_DIR}/webapps
echo "Preparing build"
mvn clean
echo "mvn bootstrap install"
mvn -Dmaven.test.skip=true
echo "mvn dependencies"
mvn dependency:copy-dependencies
echo "mvn package"
mvn -Dmaven.test.skip=true clean package -P assemble
cd $RED5_SRC/target
echo "Extractring red5"
tar zxvf red5-server-${RED5_VER}.tar.gz
#rm -rf ${RED5_WEBAPPS}/chat
#rm -rf ${RED5_WEBAPPS}/vod
#rm -rf ${RED5_WEBAPPS}/installer
#rm -rf ${RED5_WEBAPPS}/live
#cp $RED5_SRC/extras/commons-fileupload-1.2.2.jar $RED5_DIR/lib
#cp $RED5_SRC/extras/commons-io-2.0.jar $RED5_DIR/lib
echo "Creating log and work dirs"
mkdir $RED5_DIR/log
mkdir $RED5_DIR/work
sudo chown red5.adm $RED5_DIR/log
sudo chown red5.adm $RED5_DIR/work
sudo mkdir $RED5_DIR/diagnostics
sudo chown red5.adm $RED5_DIR/diagnostics
echo "Done."
cd $RED5_SRC