bug-gnulib
[Top][All Lists]
Advanced

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

avoid space-tab


From: Eric Blake
Subject: avoid space-tab
Date: Fri, 23 Mar 2007 07:10:00 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm applying this patch, because in the past, I have inadvertently
corrupted files when emacs whitespace mode decided to be 'helpful' and
collapse space-tab into plain tab.  Thus, when writing portable sed
expressions, a good rule of thumb is to use tab-space when searching for
either form of whitespace.

2007-03-23  Eric Blake  <address@hidden>

        * gnulib-tool: Rearrange space-tab sequences, since some editors
        like to eat them.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGA9Go84KuGfSFAYARAlV9AKCR4dxhKGwSoa2P1yqiLevdPhjKFgCgg7kd
izHPHXT6Q2KAQNx2qnxeS+U=
=24Ie
-----END PGP SIGNATURE-----
Index: gnulib-tool
===================================================================
RCS file: /sources/gnulib/gnulib/gnulib-tool,v
retrieving revision 1.228
diff -u -p -r1.228 gnulib-tool
--- gnulib-tool 17 Mar 2007 16:27:48 -0000      1.228
+++ gnulib-tool 23 Mar 2007 13:07:05 -0000
@@ -2823,13 +2823,13 @@ func_create_testdir ()
   # distributed (such as getdate.c).
   # Extract the value of "CLEANFILES += ..." and "MOSTLYCLEANFILES += ...".
   cleaned_files=`sed -e "$sed_remove_backslash_newline" < 
"$testdir/$sourcebase/Makefile.am" \
-                 | sed -n -e 's,^CLEANFILES[   ]*+=\([^#]*\).*$,\1,p' -e 
's,^MOSTLYCLEANFILES[         ]*+=\([^#]*\).*$,\1,p'`
+                 | sed -n -e 's,^CLEANFILES[    ]*+=\([^#]*\).*$,\1,p' -e 
's,^MOSTLYCLEANFILES[         ]*+=\([^#]*\).*$,\1,p'`
   cleaned_files=`for file in $cleaned_files; do echo " $file "; done`
   # Extract the value of "BUILT_SOURCES += ...". Remove variable references
   # such $(FOO_H) because they don't refer to distributed files.
   sed_remove_make_variables='s,[$]([A-Za-z0-9_]*),,g'
   built_sources=`sed -e "$sed_remove_backslash_newline" < 
"$testdir/$sourcebase/Makefile.am" \
-                 | sed -n -e 's,^BUILT_SOURCES[        ]*+=\([^#]*\).*$,\1,p' \
+                 | sed -n -e 's,^BUILT_SOURCES[         ]*+=\([^#]*\).*$,\1,p' 
\
                  | sed -e "$sed_remove_make_variables"`
   distributed_built_sources=`for file in $built_sources; do
                                case "$cleaned_files" in

reply via email to

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