Browse Source

accept git_build_into argments

tags/stw2018
paul 2 years ago
parent
commit
c62f85499a
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      build/arguments.sh
  2. 1
    1
      build/build_main.sh

+ 5
- 0
build/arguments.sh 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
build/build_main.sh 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

Loading…
Cancel
Save