[Top][All Lists]
[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. :-)
Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR, Alexandre Duret-Lutz, 2005/04/18
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR, Gary V. Vaughan, 2005/04/20
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Gary V. Vaughan, 2005/04/20
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Paul Eggert, 2005/04/20
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Alexandre Duret-Lutz, 2005/04/21
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Gary V. Vaughan, 2005/04/25
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Alexandre Duret-Lutz, 2005/04/25
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Gary V. Vaughan, 2005/04/29