bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-tool questions


From: Simon Josefsson
Subject: Re: gnulib-tool questions
Date: Fri, 04 Nov 2005 16:32:58 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Eric Blake <address@hidden> writes:

> I have a couple of questions:
>
> First, doc/gnulib mentions gnulib-tool --update as the preferred entry in
> a project's bootstrap (similar to gnulib-tool --import but without editing
> ChangeLogs), but that option does not exist.  Which is wrong, the docs or
> a missing option in gnulib-tool?

I believe you should use "gnulib-tool --import".  If you don't want
ChangeLog updates, use --no-changelog.  Ok to install patch below?

--- gnulib-tool.texi    19 Sep 2005 17:47:38 +0200      1.1
+++ gnulib-tool.texi    04 Nov 2005 16:30:59 +0100      
@@ -314,10 +314,9 @@
 the omitted files:
 
 @smallexample
-$ gnulib-tool --update
+$ gnulib-tool --import
 @end smallexample
 
-The @samp{--update} option operates much like the @samp{--import} option,
-but it does not offer the possibility to change the way Gnulib is used.
-Also it does not report in the ChangeLogs the files that it had to add
-because they were missing.
+If you are also generating the ChangeLog file from other source (e.g.,
+CVS history), you want to also use the @samp{--no-changelog} option
+here.

> Second, I am working on a patch to make the dirname module behave better
> on cygwin (it wasn't respecting // as distinct from /; and cygwin, unlike
> DJGPP, treats c:dir the same as c:/dir rather than tracking an additional
> 26 relative directories for each drive letter).  I have converted the test
> app that is currently in lib/dirname.c into a full blown
> modules/dirname-tests and tests/test-dirname.c, but now I can't figure out
> how to get gnulib-tool --test to compile and run test-dirname.c.

Here is what I use:

./gnulib-tool --create-testdir --dir=/tmp/testdir module1 --with-tests foo-tests

then build the project in /tmp/testdir as usual.

I think "--with-tests foo" should be sufficient.  It should auto-add
the *-tests modules, if present, if --with-tests is given.

I haven't used --tests so I don't know how to do it, but perhaps
adding "--with-tests dirname-tests" does the trick.

Hope this helps,
Simon




reply via email to

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