diff options
author | David J. MacKenzie <djm@gnu.org> | 1994-09-21 17:02:10 +0000 |
---|---|---|
committer | David J. MacKenzie <djm@gnu.org> | 1994-09-21 17:02:10 +0000 |
commit | accf89257c772b46b51eda24dbbd3b03ef307912 (patch) | |
tree | c79fa69fa79d8ccc025ff6b352699888eae57a80 /configure1.in | |
parent | 5f5e62e075c0b61ef464e562261451f148163f82 (diff) | |
download | emacs-accf89257c772b46b51eda24dbbd3b03ef307912.tar.gz |
remove trailing slashes from srcdir
Diffstat (limited to 'configure1.in')
-rwxr-xr-x | configure1.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure1.in b/configure1.in index 53c798a0e9d..5d36e7c47b5 100755 --- a/configure1.in +++ b/configure1.in @@ -421,6 +421,9 @@ case "${srcdir}" in * ) 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 |