many *.m4 files: improve m4 quoting
authorJim Meyering <meyering@redhat.com>
Tue, 13 Jan 2009 07:48:48 +0000 (08:48 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 14 Jan 2009 10:24:37 +0000 (11:24 +0100)
commit42d1eda5dcce2d68deab7a642e7f29bcd7144a0d
treeb98321c6a2033a0906b3f1244890450465d321e2
parent951fba5cd13092b41e4085878ffeee1145cb572d
many *.m4 files: improve m4 quoting

99% of this change was performed by running the following commands:
git ls-files | grep '\.m4$' | xargs perl -pi \
  -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
  -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
  -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
  -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4

The remainder were to add Copyright dates, increment serial numbers,
undo some changes in comments, exclude m4/intl.m4, and add quotes
around the "1" in ",1" where the unusual spacing prohibited the
above regexps from doing the job.  For more details, see
<http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
218 files changed:
m4/acl.m4
m4/afs.m4
m4/alloca.m4
m4/argp.m4
m4/argz.m4
m4/atexit.m4
m4/bison-i18n.m4
m4/bison.m4
m4/byteswap.m4
m4/c-stack.m4
m4/c-strtod.m4
m4/calloc.m4
m4/canonicalize-lgpl.m4
m4/chown.m4
m4/clock_time.m4
m4/codeset.m4
m4/copy-file.m4
m4/csharp.m4
m4/csharpcomp.m4
m4/csharpexec.m4
m4/d-ino.m4
m4/d-type.m4
m4/dirfd.m4
m4/double-slash-root.m4
m4/eaccess.m4
m4/eealloc.m4
m4/environ.m4
m4/errno_h.m4
m4/euidaccess.m4
m4/execute.m4
m4/fatal-signal.m4
m4/fchdir.m4
m4/fcntl_h.m4
m4/fileblocks.m4
m4/filenamecat.m4
m4/findprog.m4
m4/flexmember.m4
m4/fnmatch.m4
m4/fopen.m4
m4/fpending.m4
m4/fprintf-posix.m4
m4/free.m4
m4/frexp.m4
m4/frexpl.m4
m4/fsusage.m4
m4/ftruncate.m4
m4/gc-camellia.m4
m4/gc-random.m4
m4/gc.m4
m4/getaddrinfo.m4
m4/getcwd-abort-bug.m4
m4/getcwd-path-max.m4
m4/getdate.m4
m4/getdomainname.m4
m4/getgroups.m4
m4/gethostname.m4
m4/gethrxtime.m4
m4/getline.m4
m4/getloadavg.m4
m4/getndelim2.m4
m4/getpass.m4
m4/gettext.m4
m4/gettime.m4
m4/gettimeofday.m4
m4/gnulib-common.m4
m4/group-member.m4
m4/host-os.m4
m4/iconv.m4
m4/iconv_open.m4
m4/inet_ntop.m4
m4/inet_pton.m4
m4/inline.m4
m4/intldir.m4
m4/intlmacosx.m4
m4/intmax.m4
m4/intmax_t.m4
m4/inttypes-pri.m4
m4/inttypes.m4
m4/inttypes_h.m4
m4/isapipe.m4
m4/isnand.m4
m4/isnanf.m4
m4/isnanl.m4
m4/javacomp.m4
m4/javaexec.m4
m4/jm-winsz1.m4
m4/jm-winsz2.m4
m4/lchown.m4
m4/lcmessage.m4
m4/ldexpl.m4
m4/lib-ld.m4
m4/lib-link.m4
m4/libsigsegv.m4
m4/link-follow.m4
m4/localcharset.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-tr.m4
m4/locale-zh.m4
m4/lock.m4
m4/longlong.m4
m4/ls-mntd-fs.m4
m4/lstat.m4
m4/malloc.m4
m4/mathl.m4
m4/mbrtowc.m4
m4/mbstate_t.m4
m4/mbswidth.m4
m4/memchr.m4
m4/memcmp.m4
m4/memcpy.m4
m4/memmem.m4
m4/memmove.m4
m4/mempcpy.m4
m4/memrchr.m4
m4/memset.m4
m4/minmax.m4
m4/mkdir-slash.m4
m4/mkdtemp.m4
m4/mktime.m4
m4/mmap-anon.m4
m4/mountlist.m4
m4/nanosleep.m4
m4/nls.m4
m4/nocrash.m4
m4/open.m4
m4/openat.m4
m4/openmp.m4
m4/pathmax.m4
m4/perl.m4
m4/physmem.m4
m4/pipe.m4
m4/po.m4
m4/poll.m4
m4/posixtm.m4
m4/posixver.m4
m4/printf-frexp.m4
m4/printf-frexpl.m4
m4/printf-posix-rpl.m4
m4/printf-posix.m4
m4/printf.m4
m4/progtest.m4
m4/putenv.m4
m4/readline.m4
m4/readlink.m4
m4/readutmp.m4
m4/realloc.m4
m4/regex.m4
m4/relocatable-lib.m4
m4/relocatable.m4
m4/rename-dest-slash.m4
m4/rename.m4
m4/rmdir-errno.m4
m4/rmdir.m4
m4/roundf.m4
m4/roundl.m4
m4/rpmatch.m4
m4/save-cwd.m4
m4/selinux-selinux-h.m4
m4/setenv.m4
m4/settime.m4
m4/sig2str.m4
m4/sig_atomic_t.m4
m4/signalblocking.m4
m4/signbit.m4
m4/sigpipe.m4
m4/sockets.m4
m4/sockpfaf.m4
m4/st_dm_mode.m4
m4/stat-time.m4
m4/stdbool.m4
m4/stdint.m4
m4/stdint_h.m4
m4/stpcpy.m4
m4/stpncpy.m4
m4/strcase.m4
m4/strchrnul.m4
m4/strcspn.m4
m4/strdup.m4
m4/strftime.m4
m4/strndup.m4
m4/strnlen.m4
m4/strpbrk.m4
m4/strptime.m4
m4/strsep.m4
m4/strtod.m4
m4/strtoimax.m4
m4/strtok_r.m4
m4/strtol.m4
m4/strtoll.m4
m4/strtoul.m4
m4/strtoull.m4
m4/strtoumax.m4
m4/strverscmp.m4
m4/threadlib.m4
m4/timegm.m4
m4/tm_gmtoff.m4
m4/tmpdir.m4
m4/tmpfile.m4
m4/tzset.m4
m4/uintmax_t.m4
m4/unlinkdir.m4
m4/unlocked-io.m4
m4/uptime.m4
m4/userspec.m4
m4/utimbuf.m4
m4/utime.m4
m4/utimes-null.m4
m4/utimes.m4
m4/vararrays.m4
m4/vasnprintf.m4
m4/vfprintf-posix.m4
m4/vprintf-posix.m4
m4/wait-process.m4
m4/wchar_t.m4
m4/wint_t.m4
m4/write-any-file.m4
m4/yield.m4