-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue ossrs#2228: refine config directive token parse;
make sure one directive token don't span more than two lines.
- Loading branch information
Showing
5 changed files
with
167 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
TRUNK_DIR=$(dirname -- "${BASH_SOURCE[0]}")/../ | ||
|
||
pushd $TRUNK_DIR > /dev/null | ||
|
||
SRS_EXE=$(pwd)/objs/srs | ||
|
||
if [ ! -f ${SRS_EXE} ]; then | ||
echo "${SRS_EXE} not exist" | ||
exit -1 | ||
fi | ||
|
||
if [ ! -x ${SRS_EXE} ]; then | ||
echo "${SRS_EXE} not executable" | ||
exit -2 | ||
fi | ||
|
||
for f in `ls conf/` | ||
do | ||
if [ -f conf/$f ]; then | ||
# skip full.conf | ||
if [[ $f == "full.conf" ]] || [[ $f == "hls.edge.conf" ]]; then | ||
continue | ||
fi | ||
|
||
${SRS_EXE} -t -c conf/$f | ||
RET=$? | ||
if [ $RET -ne 0 ]; then | ||
echo "please check conf/$f" | ||
popd > /dev/null | ||
exit $RET | ||
fi | ||
fi | ||
done | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters