accept git_build_into argments

This commit is contained in:
2017-08-18 18:55:38 +02:00
parent 614bc74911
commit c62f85499a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -33,6 +33,10 @@ if [ -z "$inc_arguments" ]; then
command="$1$command"
[ "$#" -gt 0 ] && shift 1 && target="$1"
;;
git_build_into)
command="$1$command"
[ "$#" -gt 0 ] && shift 1 && target="$1"
;;
svn_build_into)
command="$1$command"
[ "$#" -gt 0 ] && shift 1 && target="$1"
@@ -101,6 +105,7 @@ if [ -z "$inc_arguments" ]; then
case "$command" in
build_into) [ -z "$target" ] && die "Missing destination directory" ;;
git_build_into) [ -z "$target" ] && die "Missing destination directory" ;;
svn_build_into) [ -z "$target" ] && die "Missing destination directory" ;;
process_file) [ -z "$workfile" ] && die "Need at least input file" ;;
build_xmlstream) [ -z "$workfile" ] && die "Missing xhtml file name" ;;
+1 -1
View File
@@ -38,7 +38,7 @@ buildpids=$(
| egrep "[s]h ${0} .*" \
| wc -l
)
if [ $command = "build_into" -o $command = "svn_build_into" ] && [ "$buildpids" -gt 2 ]; then
if [ $command = "build_into" -o $command = "git_build_into" -o $command = "svn_build_into" ] && [ "$buildpids" -gt 2 ]; then
debug "build script is already running"
exit 0
fi