Skip to content

Commit

Permalink
Replace pwd by $PWDCMD in test_common.in
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwoods committed Sep 4, 2021
1 parent 2d4b7e2 commit ed4ba0e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test_common.in
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,27 @@ top_builddir="$TOPBUILDDIR"
if test "x$srcdir" = x ; then
# we need to figure out our directory
# pick off the last component as the relative name of this directory
srcdir=`pwd`
srcdir=`$PWDCMD`
current=`basename $srcdir`
srcdir="${top_srcdir}/$current"
fi

# We also assume we are executing in builddir
builddir=`pwd`
builddir=`$PWDCMD`

# execdir is an alias for builddir
execdir="${builddir}"

# pick off the last component as the relative name of this directory
thisdir=`basename $srcdir`

WD=`pwd`
WD=`$PWDCMD`
# Absolutize paths of interest
cd $srcdir; srcdir=`pwd` ; cd $WD
cd $top_srcdir; top_srcdir=`pwd` ; cd $WD
cd $builddir; builddir=`pwd` ; cd $WD
cd $top_builddir; top_builddir=`pwd` ; cd $WD
cd $execdir; execdir=`pwd` ; cd $WD
cd $srcdir; srcdir=`$PWDCMD` ; cd $WD
cd $top_srcdir; top_srcdir=`$PWDCMD` ; cd $WD
cd $builddir; builddir=`$PWDCMD` ; cd $WD
cd $top_builddir; top_builddir=`$PWDCMD` ; cd $WD
cd $execdir; execdir=`$PWDCMD` ; cd $WD

# If we have cygpath (which only exists under CYGWIN),
# then try to normalize selected file paths.
Expand Down

0 comments on commit ed4ba0e

Please sign in to comment.