diff options
author | 2015-11-30 03:10:21 -0500 | |
---|---|---|
committer | 2015-11-30 03:10:21 -0500 | |
commit | c0b7206652b2852bc574694e7ba07ba1c2acdc00 (patch) | |
tree | 5cb95cb0e19e03610525903df46279df2c3b7eb1 /rubbos/app/tomcat-connectors-1.2.32-src/support/jk_exec.m4 | |
parent | b6d3d6e668b793220f2d3af1bc3e828553dc3fe6 (diff) |
delete app
Change-Id: Id4c572809969ebe89e946e88063eaed262cff3f2
Signed-off-by: hongbotian <hongbo.tianhongbo@huawei.com>
Diffstat (limited to 'rubbos/app/tomcat-connectors-1.2.32-src/support/jk_exec.m4')
-rw-r--r-- | rubbos/app/tomcat-connectors-1.2.32-src/support/jk_exec.m4 | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/rubbos/app/tomcat-connectors-1.2.32-src/support/jk_exec.m4 b/rubbos/app/tomcat-connectors-1.2.32-src/support/jk_exec.m4 deleted file mode 100644 index b2da284e..00000000 --- a/rubbos/app/tomcat-connectors-1.2.32-src/support/jk_exec.m4 +++ /dev/null @@ -1,91 +0,0 @@ -dnl -dnl Licensed to the Apache Software Foundation (ASF) under one or more -dnl contributor license agreements. See the NOTICE file distributed with -dnl this work for additional information regarding copyright ownership. -dnl The ASF licenses this file to You under the Apache License, Version 2.0 -dnl (the "License"); you may not use this file except in compliance with -dnl the License. You may obtain a copy of the License at -dnl -dnl http://www.apache.org/licenses/LICENSE-2.0 -dnl -dnl Unless required by applicable law or agreed to in writing, software -dnl distributed under the License is distributed on an "AS IS" BASIS, -dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -dnl See the License for the specific language governing permissions and -dnl limitations under the License. -dnl - -dnl -------------------------------------------------------------------------- -dnl -dnl Inspired by Pier works on webapp m4 macros :) -dnl -dnl Version $Id: jk_exec.m4 802231 2009-08-07 21:43:52Z markt $ -dnl -------------------------------------------------------------------------- - -dnl -------------------------------------------------------------------------- -dnl JK_EXEC -dnl Execute a program filtering its output (pretty printing). -dnl -dnl Parameters: -dnl $1 => name of the variable containing the return value (error code). -dnl $2 => name of the binary/script to invoke -dnl $3 => message used for pretty printing output -dnl $4 => the directory where the command must be executed -dnl -------------------------------------------------------------------------- -AC_DEFUN( - [JK_EXEC], - [ - jk_exec_curdir="`pwd`" - if test -d "$4" ; then - cd "$4" - else - AC_MSG_ERROR([can't switch to directory $4]) - fi - - echo " invoking \"$2\"" - echo " in directory \"$4\"" - echo "-1" > retvalue.tmp - - set $2 - jk_exec_file=[$]1 - if test ! -x "${jk_exec_file}" ; then - cd "${jk_exec_curdir}" - AC_MSG_ERROR([cannot find or execute \"${jk_exec_file}\" in \"$4\"]) - exit 1 - fi - unset jk_exec_file - - { - $2 - echo - echo "jk_exec_retvalue $?" - } | { - jk_exec_ret=0 - while true ; do - read jk_exec_first jk_exec_line - if test ! "$?" -eq "0" ; then - break - else - if test "${jk_exec_first}" = "jk_exec_retvalue" ; then - jk_exec_ret="${jk_exec_line}" - else - if test -n "${jk_exec_line}" ; then - echo " $3: ${jk_exec_first} ${jk_exec_line}" - fi - fi - fi - done - echo "${jk_exec_ret}" > retvalue.tmp - unset jk_exec_first - unset jk_exec_line - unset jk_exec_ret - } - - $1="`cat retvalue.tmp`" - rm -f retvalue.tmp - echo " execution of \"$2\"" - echo " returned with value \"${$1}\"" - - cd "${jk_exec_curdir}" - unset jk_exec_curdir - ]) |