changeset 8971:69ac91e85d1e

remove trailing slashes from srcdir
author David J. MacKenzie <djm@gnu.org>
date Wed, 21 Sep 1994 17:02:10 +0000
parents c0a15f821bd8
children ad8f1cea49cc
files configure1.in
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Wed Sep 21 16:15:42 1994 +0000
+++ b/configure1.in	Wed Sep 21 17:02:10 1994 +0000
@@ -421,6 +421,9 @@
   *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
 esac
 
+### Remove trailing slashes.
+srcdir=`echo "${srcdir}" | sed 's,\([^/]\)/*$,\1,'`
+
 #### Check if the source directory already has a configured system in it.
 if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
    && [ -f "${srcdir}/src/config.h" ] ; then