"s/\(regex\)*/foo/", so use a loop instead to get rid of
extraneous "./" occurences. Do we want srctop and
buildtop to have leading "./"s? They do currently. Is
this a bug?
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7639
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Mar 14 02:00:10 1996 Tom Yu <tlyu@dragons-lair.MIT.EDU>
+
+ * aclocal.m4 (V5_OUTPUT_MAKEFILE): most seds don't deal with
+ "s/\(regex\)*/foo/", so use a loop instead to get rid of
+ extraneous "./" occurences. Do we want srctop and
+ buildtop to have leading "./"s? They do currently. Is
+ this a bug?
+
Sun Mar 10 23:49:19 1996 Mark W. Eichin <eichin@cygnus.com>
* aclocal.m4 (KRB5_SIGTYPE): quote the body correctly, so the test
AC_OUTPUT($filelist,
[EOF
ac_reltopdir=`echo $ac_reltopdir | sed \
- -e 's,^\(\./\)*,,g' \
- -e 's,/\(\./\)*,/,g' \
+ -e ':LOOP' \
+ -e 's,/\./,/,' \
+ -e 'tLOOP' \
+ -e 's,^\./,,' \
-e 's,/\.$,,g' \
`
test "$ac_reltopdir" = "" && ac_reltopdir=.
changequote(,)dnl
x=`echo $d/ | sed \
-e 's,//*$,/,' \
- -e 's,^\(\./\)*,,g' \
- -e 's,/\(\./\)*,/,g' \
+ -e ':LOOP' \
+ -e 's,/\./,/,' \
+ -e 'tLOOP' \
+ -e 's,^\./,,' \
-e 's,/\./$,/,g' \
-e 's,^\./$,,' \
-e 's,[^/]*/,../,g' \
esac
s=`echo $s | sed \
-e 's,//*$,/,' \
- -e 's,^\(\./\)*,,g' \
- -e 's,/\(\./\)*,/,g' \
+ -e ':LOOP' \
+ -e 's,/\./,/,' \
+ -e 'tLOOP' \
-e 's,^\./$,,' \
-e 's,/\.$,,g' \
`