* .cvsignore: Remove stamp-h1. Add coreutils-*, to ignore
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Aug 2006 23:30:57 +0000 (23:30 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Aug 2006 23:30:57 +0000 (23:30 +0000)
tarballs.
* bootstrap.conf: Add configmake, verify.
* lib/.cvsignore: Add configmake.h, stamp-h1.
* src/.cvsignore: Remove localedir.h.
* src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove;
subsumed by configmake.
* src/system.h: Include configmake.h rather than localedir.h
(LOCALEDIR): New macro.

.cvsignore
ChangeLog
bootstrap.conf
lib/.cvsignore
lib/ChangeLog
src/.cvsignore
src/Makefile.am
src/system.h

index 45cfe2a..9e20a25 100644 (file)
@@ -10,4 +10,4 @@ THANKS-to-translators
 aclocal.m4
 config.status
 configure
-stamp-h1
+coreutils-*
index 2769bd8..db2a827 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * .cvsignore: Remove stamp-h1.  Add coreutils-*, to ignore
+       tarballs.
+       * bootstrap.conf: Add configmake, verify.
+       * src/.cvsignore: Remove localedir.h.
+       * src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove;
+       subsumed by configmake.
+       * src/system.h: Include configmake.h rather than localedir.h
+       (LOCALEDIR): New macro.
+
+       Rewrite to avoid some unnecessary casts, macros, literals.
+       * src/shred.c (DEFAULT_PASSES, VERBOSE_UPDATE): Now constants,
+       not macros.
+       (SECTOR_SIZE, SECTOR_MASK): New constants.
+       (fillpattern, dopass, do_wipefd, main): Remove unnecessary casts,
+       and use the SECTOR_* constants when applicable.  Check for size <
+       0 rather than size == -1, since negative-size files are a sign of
+       trouble anyway.
+
+2006-08-25  Bruno Haible  <bruno@clisp.org>
+
+       * src/shred.c (dopass): Assume a continuable error if EIO even
+       if the current position is not a multiple of 512.
+
 2006-08-24  Jim Meyering  <jim@meyering.net>
 
        * src/stat.c (print_statfs): Fix typo: remove extra "sizeof".
index 2e30d47..edb88b8 100644 (file)
@@ -38,7 +38,7 @@ gnulib_modules="
        $avoided_gnulib_modules
        $obsolete_gnulib_modules
        acl alloca argmatch assert backupfile base64 c-strtod
-       c-strtold calloc canon-host canonicalize chown cloexec
+       c-strtold calloc canon-host canonicalize chown cloexec configmake
        closeout cycle-check d-ino d-type diacrit dirfd dirname dup2
        error euidaccess exclude exitfail fcntl-safer fdl file-type
        fileblocks filemode filenamecat fnmatch-gnu fopen-safer
@@ -56,7 +56,7 @@ gnulib_modules="
        stat-time stdbool stdint stdlib-safer stpcpy strcase strftime
        strpbrk strtoimax strtoumax strverscmp timespec tzset
        unicodeio unistd-safer unlink-busy unlinkdir unlocked-io
-       uptime userspec utimecmp utimens vasprintf version-etc-fsf
+       uptime userspec utimecmp utimens vasprintf verify version-etc-fsf
        wcwidth winsz-ioctl winsz-termios xalloc xgetcwd xgethostname
        xmemcoll xnanosleep xreadlink xstrtod xstrtoimax xstrtol
        xstrtold xstrtoumax yesno
index d943f86..c20212d 100644 (file)
@@ -43,6 +43,7 @@ closeout.h
 config.charset
 config.h
 config.hin
+configmake.h
 creat-safer.c
 cycle-check.c
 cycle-check.h
@@ -264,6 +265,7 @@ sig2str.h
 snprintf.c
 snprintf.h
 socket_.h
+stamp-h1
 stat-macros.h
 stat-time.h
 stat_.h
index 03d1599..9247c4c 100644 (file)
@@ -1,3 +1,7 @@
+2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * .cvsignore: Add configmake.h, stamp-h1.
+
 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        * .cvsignore: Add config.h, config.hin.
index 9090f41..0b41f92 100644 (file)
@@ -42,7 +42,6 @@ join
 kill
 link
 ln
-localedir.h
 logname
 ls
 md5sum
index 8442b8e..9b535f1 100644 (file)
@@ -48,6 +48,7 @@ noinst_HEADERS = \
 
 EXTRA_DIST = dcgen dircolors.hin tac-pipe.c \
   groups.sh wheel-gen.pl extract-magic c99-to-c89.diff
+BUILT_SOURCES =
 CLEANFILES = $(SCRIPTS) su
 
 AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)/lib -I../lib
@@ -203,15 +204,6 @@ sha512sum_CPPFLAGS = -DHASH_ALGO_SHA512=1 $(AM_CPPFLAGS)
 
 editpl = sed -e 's,@''PERL''@,$(PERL),g'
 
-localedir = $(datadir)/locale
-BUILT_SOURCES = localedir.h
-DISTCLEANFILES = localedir.h
-localedir.h:
-       @rm -f $@ $@-t
-       echo '#define LOCALEDIR "$(localedir)"' >$@-t
-       @chmod a-w $@-t
-       mv $@-t $@
-
 BUILT_SOURCES += dircolors.h
 dircolors.h: dcgen dircolors.hin
        @rm -f $@ $@-t
index e395fbe..29bd1be 100644 (file)
@@ -55,7 +55,9 @@ you must include <sys/types.h> before including this file
 #include <limits.h>
 
 #include "pathmax.h"
-#include "localedir.h"
+
+#include "configmake.h"
+#define LOCALEDIR CONFIGMAKE_LOCALEDIR
 
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>