Blame view

trunk/scripts/build.sh 454 字节
1 2 3 4 5
#!/bin/bash
src_dir='src'
if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi

# step 1: build srs 
6
# nginx is not needed, we use cherrypy to delivery hls.
7
# demo needs ffmpeg to transcode the live stream.
winlin authored
8
echo "编译SRS"
winlin authored
9
./configure --demo && make
winlin authored
10
ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi
11 12

echo "编译SRS成功"
13 14
echo "你可以启动SRS:"
echo "    bash scripts/run.sh"