bug-gnulib
[Top][All Lists]
Advanced

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

Re: the release of grep-2.9 is imminent


From: Bruno Haible
Subject: Re: the release of grep-2.9 is imminent
Date: Tue, 21 Jun 2011 23:13:44 +0200
User-agent: KMail/1.9.9

Jim Meyering wrote about modifications done to .gitignore files:
> I've Cc'd bug-gnulib, since gnulib-tool appears
> to be doing it.
> 
> I notice that some of your differences appear to be due to sorting
> with a different locale than I use.  That implies there's a second
> problem: perhaps one of gnulib-tool's uses of sort is not prefixed
> with LC_ALL=C.

In both cases, the problem lies in the 'bootstrap' script, not in
'gnulib-tool'. gnulib-tool does only two things with the .gitignore files:
  - It adds added files, at the end of the .gitignore file.
  - It removes removed files from the list.

See gnulib-tool lines 5312..5319:

                mv -f "$destdir/$dir$ignore" "$destdir/$dir$ignore"~
                ...
                { cat "$destdir/$dir$ignore"~
                  sed -e "s|^|$anchor|" < "$tmp"/ignore-added
                } | sed -f "$tmp"/sed-ignore-removed \
                  > "$destdir/$dir$ignore"

gnulib-tool does *not* add blank lines.
gnulib-tool does *not* sort the files.
gnulib-tool preserves comments in the files.

Bruno
-- 
In memoriam Mihovil Pavlek Miškina 
<http://en.wikipedia.org/wiki/Mihovil_Pavlek_Miškina>



reply via email to

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