autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR


From: Paul Eggert
Subject: Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR
Date: Wed, 20 Apr 2005 10:31:27 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

"Gary V. Vaughan" <address@hidden> writes:

> You misunderstood; my intent was to ensure exactly one trailing slash for easy
> concatenation further down in the code.

Ah, sorry, in that case it should be something like this.
(This runs faster on shells where "test" is not built in.)

case $ac_config_libobj_dir in
*/) ac_libobj_dir=`expr "X$ac_config_libobj_dir" : 'X\(.*[^/]/\)'` ;;
.)  ac_libobj_dir= ;;
*)  ac_libobj_dir=$ac_config_libobj_dir/ ;;
esac

> $ echo 'abc\def' | sed 's,/*$,/,'
> abc\def

Surely you meant "abc\def/".  (I guess my consolation is that I wasn't
the only one confused here.  :-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]