tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/webapp/support wa_util.m4
Date Wed, 01 May 2002 18:05:38 GMT
pier        02/05/01 11:05:37

  Modified:    webapp/support wa_util.m4
  Log:
  Localization of variable names within M4 macros (darn, there's no stack)
  
  Revision  Changes    Path
  1.3       +13 -14    jakarta-tomcat-connectors/webapp/support/wa_util.m4
  
  Index: wa_util.m4
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/wa_util.m4,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- wa_util.m4	1 May 2002 15:29:36 -0000	1.2
  +++ wa_util.m4	1 May 2002 18:05:37 -0000	1.3
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <pier@betaversion.org>
  -dnl Version $Id: wa_util.m4,v 1.2 2002/05/01 15:29:36 pier Exp $
  +dnl Version $Id: wa_util.m4,v 1.3 2002/05/01 18:05:37 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -96,21 +96,20 @@
     [WA_PATH_DIR],
     [
       AC_MSG_CHECKING([for $3 path])
  -    tempval="`echo $2`"
  -    if test -d "${tempval}" ; then
  -      curdir="`pwd`"
  -      cd "${tempval}"
  -      newdir="`pwd`"
  -      $1="${newdir}"
  -      AC_SUBST($1)
  -      AC_MSG_RESULT([${newdir}])
  -      cd "${curdir}"
  -      unset curdir
  -      unset newdir
  +    wa_path_dir_tempval="`echo $2`"
  +    if test -d "${wa_path_dir_tempval}" ; then
  +      wa_path_dir_curdir="`pwd`"
  +      cd "${wa_path_dir_tempval}"
  +      wa_path_dir_newdir="`pwd`"
  +      $1="${wa_path_dir_newdir}"
  +      AC_MSG_RESULT([${wa_path_dir_newdir}])
  +      cd "${wa_path_dir_curdir}"
  +      unset wa_path_dir_curdir
  +      unset wa_path_dir_newdir
       else
  -      WA_ERROR([directory ${tempval} not found])
  +      WA_ERROR([directory ${wa_path_dir_tempval} not found])
       fi
  -    unset tempval
  +    unset wa_path_dir_tempval
     ])
   
   dnl --------------------------------------------------------------------------
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message