do not run build script if process already exists

svn path=/trunk/; revision=31261
This commit is contained in:
2015-05-23 10:16:58 +00:00
parent 19f8d8a99c
commit 2928bf1617
+7 -1
View File
@@ -2,11 +2,17 @@
basedir="$(dirname $0)/.."
[ -z "$inc_misc" ] && . "$basedir/build/misc.sh"
if ps -eo command |egrep -q '[b]uild_main.sh'; then
print_error "build script is already running"
exit 0
fi
[ -z "$inc_filenames" ] && . "$basedir/build/filenames.sh"
[ -z "$inc_buildrun" ] && . "$basedir/build/buildrun.sh"
[ -z "$inc_languages" ] && . "$basedir/build/languages.sh"
[ -z "$inc_makerules" ] && . "$basedir/build/makerules.sh"
[ -z "$inc_misc" ] && . "$basedir/build/misc.sh"
[ -z "$inc_processor" ] && . "$basedir/build/processor.sh"
[ -z "$inc_scaffold" ] && . "$basedir/build/scaffold.sh"
[ -z "$inc_sources" ] && . "$basedir/build/sources.sh"