bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 6/7] libposix: raw files to import an installable libposix pr


From: Bruce Korb
Subject: Re: [PATCH 6/7] libposix: raw files to import an installable libposix project
Date: Tue, 12 Oct 2010 18:18:58 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100714 SUSE/3.0.6 Thunderbird/3.0.6

Hi Gary,

On 10/12/10 09:08, Gary V. Vaughan wrote:

> +++ b/libposix/bootstrap
> @@ -0,0 +1,55 @@
> +#! /bin/sh
> +
> +PATH=..:$PATH
> +
> +gnulib-tool --import --lib=libposix --makefile-name=gnulib.mk \
> +  --macro-prefix=LIBPOSIX --libtool --no-changelog --symlink \
> +  --with-tests --with-c++-tests --with-longrunning-tests \
> +  libposix

The construction of the libposix project needs to happen inside
of a build directory.  It makes the process much cleaner.
I will rework this script to do that, please.  Thank you.

> +mv tests/gnulib.mk tests/Makefile.am
> +
> +# sanity check the module list for synchronisation issues.
> +echo "posix-modules :
> +`posix-modules`
> +libposix :
> +`gnulib-tool --extract-dependencies libposix`" |awk '

>   - A 36-lines awk script inside a Makefile? Isn't it more maintainable to
>     put it in a separate file?

I don't mind that so much, as long as the quoting is clean.
In this case, the script does not require any apostrophes,
so it isn't too bad.  I do find it easier to read when dropped
into a variable and then used as in:

   ... | awk "$awkcmd"

It disentangles the awk commands from the shell commands.

Cheers - Bruce



reply via email to

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