mirror of https://github.com/ossrs/srs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
584 B
Bash
21 lines
584 B
Bash
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
# discover the current work dir, the log and access.
|
||
|
echo "argv[0]=$0"
|
||
|
if [[ ! -f $0 ]]; then
|
||
|
echo "directly execute the scripts on shell.";
|
||
|
work_dir=`pwd`
|
||
|
else
|
||
|
echo "execute scripts in file: $0";
|
||
|
work_dir=`dirname $0`; work_dir=`(cd ${work_dir} && pwd)`
|
||
|
fi
|
||
|
work_dir=`(cd ${work_dir}/.. && pwd)`
|
||
|
product_dir=$work_dir
|
||
|
build_objs=${work_dir}/objs
|
||
|
package_dir=${build_objs}/package
|
||
|
|
||
|
log="${build_objs}/logs/package.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log
|
||
|
ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
|
||
|
|
||
|
# test default configure.
|