diff --git a/bin/mklibtests.sh b/bin/mklibtests.sh index 82c44853fb90fe28dbc3f165accc8da413c9e91f..10b4426bb67575540a411ac6a6c34955fcfd301e 100755 --- a/bin/mklibtests.sh +++ b/bin/mklibtests.sh @@ -33,7 +33,12 @@ recurse () { echo >&2 "Could not create $dest_dir$path"testsuite continue fi - "$bin_dir"mktestsuite "$src_dir$path$fn" >&5 + if [ "$PIKE_PATH_TRANSLATE" = "" ]; then + "$bin_dir"mktestsuite "$src_dir$path$fn" >&5 -DSRCDIR="$src_dir$path" + else + "$bin_dir"mktestsuite "$src_dir$path$fn" >&5 \ + -DSRCDIR="`echo $src_dir$path|sed -e $PIKE_PATH_TRANSLATE|$bin_dir/../src/posix_to_native.sh`" + fi exec 5>&- echo "$dest_dir$path"testsuite updated. fi