6
20
build: avoid range errors in use of ctype functions
7
21
* src/shar.c (to_uchar): New helper, borrowed from coreutils.
8
22
(ISASCII, IS_GRAPH, process_shar_input, trim): Avoid range errors.
10
2013-04-13 Bruce Korb <bkorb@gnu.org>
12
* src/shar.c (open_encoded_file): split out code that must vary
13
(compress_file): new function -- varies by HAVE_WORKING_FORK
14
* src/unshar.c (get_env_tmpdir): new function, varies by MinGW
16
(unshar_file): variations for MinGW
17
* src/uudecode.c (get_env_homedir): new function, varies by MinGW
18
(expand_tilde): use it
19
(decode): filemode must be set to binary for MinGW
20
* bootstrap: make sure that gnulib supported headers are not
21
seen as missing by the libopts config macros
22
* src/Makefile.am: add "scribble" module to shar program.
23
* src/scribble.c: new file
24
* src/scribble.h: likewise
25
* src/shar.c: simplify a lot of code by using that module.
26
Do not use file names as format arguments.
27
* tests/shar-1: accommodate Windows correctly.
29
2013-04-12 Bruce Korb <bkorb@gnu.org>
33
* bootstrap: more stuff from gnulib
34
* configure.ac.git: defer libopts/autogen testing to end. Give gnulib
35
a chance to patch in headers. (Partial fix)
36
* doc/Makefile.am: uudecode.1 should be distributable.
37
* src/Makefile.am: reorder library list for systems that need it
38
* src/scripts.def (ck_chct): put the "wc" command into the string,
39
instead of using the one that must work with "system(3)".
40
It is different for MinGW.
41
* src/shar-opts.def: clarify the significance of compression.
42
declare initialization_done to be a boolean.
43
* src/shar.c (do_uue_t): enumerate the ternary results of need-to-encode:
44
true, false and fail/broken.
45
(print_header_stamp): timezones can be very long.
46
(read_byte_size): extraction from emit_char_ct_validation
47
(emit_char_ct_validation): system(3) requires a different command syntax
48
on Windows platforms. Accommodate.
49
(file_needs_encoding): returns do_uue_t enumeration
50
(set_submitter): SET_OPT_SUBMITTER() needs a stable (non-stack) value
51
(file_needs_encoding): remove unneeded "else".
52
(open_shar_input): split out code that requires fork(2) into
53
a new function compress_file().
54
(compress_file): do the fork() call.
55
(compress_file): make a version for platforms without fork(2).
56
(open_output): set stdout to binary mode on MINGW
57
* src/uudecode.c (decode): do_base64 is local to this function.
58
* tests/shar-1: accommodate Windows
59
* tests/shar-3: accommodate the build directory being a sym link
61
2013-04-06 Bruce Korb <bkorb@gnu.org>
63
* src/uudecode.c (read_base64): input line now contains newline.
64
(reopen_output): comment on why we're messing with POSIXLY_CORRECT
65
(decode_fname): current algorithm does not require extra NUL bytes
66
* tests/Makefile.am: add uudecode-2 test
67
* tests/uudecode-2: new test for encoded file names
68
* tests/uutest-1: compute loop static computations outside of loop
70
2013-03-31 Bruce Korb <bkorb@gnu.org>
74
2013-03-09 Bruce Korb <bkorb@gnu.org>
76
* bootstrap: constrain translation fetching to once a day
77
(set_up_po_dir): clean up README construction
78
(setup_configure): extract local.h include list from gnulib-tool
79
* src/shar-full-help.txt: fiddle, per xlation project requests
80
* src/unshar-full-help.txt: likewise
81
* src/uudecode-full-help.txt: likewise
82
* src/uuencode-full-help.txt: likewise
83
* src/unshar-opts.def: likewise
84
* src/shar.c (print_caution_notes): fix option test
85
(split_shar_ed_file): do not write NUL byte and set output file
86
position back to the end, after scribbling on the beginning.
87
(start_sharing_file): fix option test
88
(parse_output_base_name): save current init-done state before setting
89
to false and restore to saved value.
90
* tests/shar-3: fix misordered "find(1)" options
92
2013-02-24 Bruce Korb <bkorb@gnu.org>
94
* src/Makefile.am: process the unshar option code
95
* src/unshar-opts.def: make ready for use
96
* src/unshar.c: use the generated option code
98
2013-02-17 Bruce Korb <bkorb@gnu.org>
100
* src/shar.c (whoami.c): not needed -- do not include
101
(scripts.x): move more blocks of text to scripts.def and source
102
the file earlier in the file.
103
(DEBUG_PRINT): do not translate debugging formats
104
* lib/whoami.c: obsolete.
105
* configure.ac.git (HAVE_ETC_SYSTEMID): obsolete
106
(SH): accept ksh and dash, too
107
* po/*.po: updates from translation project
108
* src/mk-help.sh: update for latest AutoGen tweaks
109
* src/scripts.def: added new named blocks of text
110
* src/*-help.txt: fix capitalization for all usage text
111
* src/shar-opts.def: likewise
112
* src/shar-short-help.txt: likewise
114
2013-01-12 Bruce Korb <bkorb@gnu.org>
116
* bootstrap: allow for some issues to be warnings (rsync failures)
117
added new modules: base64, ctype, gendocs
118
(system.h): make sure it is included first
119
(unshar-opts.c): we create it, but do not compile it yet.
120
* doc/Makefile.am: add rule to create doc tree with gendocs
121
* doc/gnudoc.tpl: removed, obsolete
122
* doc/mkgnudoc.sh: likewise
123
* doc/uuencode.5: cleanup
124
* lib/system.h (USE_UNLOCKED_IO): always
125
(stdbool.h): provide alternative
126
* src/Makefile.am: add rules for updating help text
127
* src/mk-help.sh: adjust
128
* src/*-help.txt: adjust
129
* src/shar-std.def: emit some more common stuff
130
* src/local.h.git: migrate config.h and unlocked io requirements to
132
* src/unshar-opts.def: when this becomes auto-opt-ed, it will use
133
a generated main. Partially tested, so disabled for now.
134
* src/uudecode-opts.def (output): do not freopen when the file
135
name is "-" or "/dev/stdout".
136
* src/uudecode.c: remove all base64 stuff and use gnulib.
137
(decode_fname): new. Use when "begin-encode" is discovered.
138
(decode): rewrite the begin line parser to accept both "-base64"
139
and "-encode" options.
140
* src/uuencode.c: remove all base64 stuff and use gnulib.
141
* tests/Makefile.am: add shar-4 test
142
* tests/shar-2: improve debugability
143
* tests/shar-3: likewise
144
* tests/shar-4: new -- test "-o /dev/stdout" option to uudecode
145
* po/getpo.sh: removed - rsync is used now
147
2013-01-05 Bruce Korb <bkorb@gnu.org>
151
2013-01-05 Peter Pisar <ppisar@redhat.com>
153
* lib/md5.[ch]: deleted.
154
* lib/basename.h: deleted
155
* bootstrap: pull crypto/md5 from gnulib
156
do not include basename.h any more.
158
2013-01-05 Karl Berry <karl@freefriends.org>
160
* doc/sharutils.texi: sharutils doesn't own the GFDL
162
2013-01-05 Bruce Korb <bkorb@gnu.org>
164
* src/shar-opts.def: deprecate duplicate options and polish
165
* src/shar-std.def: polish
166
* src/unshar-opts.def: polish
167
* src/uudecode-opts.def: polish
168
* src/uuencode-opts.def: polish
169
* everywhere: Happy 2013 new year
171
2013-01-05 Xose Vazquez Perez <xose.vazquez@gmail.com>
173
* doc/*.1: needed re-generation to fix missing newline.
175
2012-12-27 Bruce Korb <bkorb@gnu.org>
179
* doc/sharutils.texi: remove doc of non-existant scripts
180
* src/Makefile.am: add rule to update help text
181
* src/*-opts.def: Do not emit usage text values when we don't
182
have them. This makes it possible to re-create it (see above).
183
* src/*help.txt: regenerated
185
2012-12-22 Bruce Korb <bkorb@gnu.org>
187
* src/uudecode-opts.def (ignore-chmod): new option to allow
188
POSIX preferences. (Erroring out is compliant, but not
190
(exit-name): document all the exit codes.
191
(detail/doc-section): improve command description.
192
(exit-name): add uudecode exit codes
193
* src/uudecode.c (everywhere): use the exit codes
194
(reopen_output): check for --ignore-chmod option and/or
195
POSIXLY_CORRECT environment variable before returning an error
196
on a bad result from fchmod().
197
(main): strip out option handling code and call optionProcess().
198
* tests/shar-3: adjust
200
2012-08-11 Bruce Korb <bkorb@gnu.org>
202
* .gnuploadrc: support gnu upload script
203
* bootstrap: rework to use gnulib and rebuild option code
204
* src/Makefile.am: tell make how to build option code
205
* configure.ac.git: renamed from configure.ac. Check for autogen.
206
* src/scripts.def: define some new strings
207
* src/shar-opts.def: define options and doc them for shar program
208
* src/unshar-opts.def: likewise for unshar
209
* src/uudecode-opts.def: likewise for uudecode
210
* src/uuencode-opts.def: likewise for uuencode
211
* src/shar-std.def: define standard options for shar and unshar
212
* src/shar.c: rewrite to use generated option code
213
* src/uuencode.c: rework (not rewrite) to use new option code
214
* po/.gitignore: tell GIT to ignore derived files
215
* src/.gitignore: likewise
216
* doc/.gitignore: likewise
217
* doc/Makefile.am: docs are largely derived files now
219
* doc/sharutils.texi: include derived files
220
* tests/shar-1.ok: tweak for new output layout
221
* tests/shar-2: cleanup debugging stuff
222
* tests/shar-3: increase file segment size
223
* tests/uutest-1: add debugability stuff & simplify script
224
* configure.ac.git: incorporate building of libopts
225
* src/Makefile.am: link against libopts
227
2011-05-02 Bruce Korb <bkorb@gnu.org>
228
Gary Vaughan <gary@gnu.org>
230
* src/Makefile.am: do not use LTLIBOBJ for non-libtool build
232
2011-04-25 Bruce Korb <bkorb@gnu.org>
234
* bootstrap: tell autoreconf that autopoint has been run.
236
2011-02-05 Bruce Korb <bkorb@gnu.org>
238
* bootstrap: compute the list of files to include in local.h
239
by examining the log from gnulib-tool.
240
* src/local.h: replace the list of #includes with a marker that
241
gets replaced by bootstrap.
242
* src/mail-files.in: depends upon an executable that was removed
243
decades ago. Removed.
244
* src/mailshar.in: likewise
246
2011-01-14 Bruce Korb <bkorb@gnu.org>
248
* src/shar.c: clean up code
249
* configure.ac: remove _GNU_SOURCE from config.h
250
* doc/Makefile.am: distribute fdl.texi, too
251
* doc/gnudoc.tpl: remove stray number->string function
252
* doc/mkgnudoc.sh: Trim "GNU" prefix from project name when
253
deriving a directory name
254
* doc/sharutils.texi: Add myself as an author and doc the
255
uuencode/uudecode programs
257
2010-09-04 Bruce Korb <bkorb@gnu.org>
259
* doc/doclicense.texi: remove -- use fdl.texi instead
260
* bootstrap: get fdl.texi
261
* configure.ac (AC_CONFIG_FILES): omit contrib/Makefile
263
* doc/sharutils.texi: cleanup, per Karl's suggestions
265
2010-08-27 Bruce Korb <bkorb@gnu.org>
267
* everywhere: remsync removed
269
2010-08-27 Bruce Korb <bkorb@gnu.org>
272
Thanks to Paolo Bonzini
274
* src/scripts.def (i18n): Remove saving of $1.
275
(clobber_check) always emit a test for a -c option and set "keep_file"
277
(pre_exist): use it appropriately
278
* src/shar.c (generate_configure): always emit clobber_check.
279
* tests/shar-1.ok: adjust
280
* TODO: removed three entries
281
* src/uudecode (reopen_output): remove tests for FIFO and LINK.
282
(main): if output file is specified on the command line, ensure
283
that there is only one input.
285
2010-02-21 Bruce Korb <bkorb@gnu.org>
287
* bootstrap: Select fopen modes based on popen() support.
288
Well, infrastrucure for that. A config test is still needed.
289
* scripts.def (noisy_mkdir): obsolete
295
* scripts.tpl: allow strings to not end with a newline.
296
* src/shar.c (echo_status):
297
(*): Remove shell quotes from messages inserted into the generated
298
shar script. Quote these strings dynamically after translation.
299
(shar): rip out several large chunks into new functions.
300
(open_shar_input): new
301
(encode_file_to_pipe): new
302
(determine_file_mode): new
303
(emit_char_ct_validation): new
304
* tests/shar-1: check for $VERBOSE
305
* tests/shar-2: check for $VERBOSE
306
* tests/shar-3: check for $VERBOSE
307
* tests/shar-1.ok: Adjust some more.
309
2010-02-21 Andreas Schwab <schwab@linux-m68k.org>
311
* bootstrap: Add quotearg gnulib module.
312
* src/shar.c: Include "quotearg.h"
313
(generate_mkdir): Properly quote filename in script.
314
(change_files): Likewise.
315
(shar): Likewise. Don't use fixed size buffer.
316
* src/scripts.def (md5check): Adjust quoting.
317
* tests/shar-1.ok: Adjust.
319
2010-02-19 Bruce Korb <bkorb@gnu.org>
321
* src/*.c (cright_years_z): define at top of main modules and use
322
in version formatting.
323
* bootstrap: clean up gnulib usage. Generate the src/local.h header.
325
2010-02-18 Bruce Korb <bkorb@gnu.org>
327
* bootstrap: extract version from configure.ac and remove the
328
definition from the generated "version.m4" file.
329
Update the list of modules retrievable from gnulib.
330
Always change the automake and gettext versions in configure.ac.
331
* configure.ac: Add comment markers after each autoconf macro
332
Update the list of functions that gnulib does not fret over.
333
* src/Makefile.am (LDADD): obsolete. Use <prog>_LDADD instead.
335
2009-11-15 Alfred M. Szmidt <ams@gnu.org>
337
* bootstrap (tag): Don't use obsolete syntax for sort.
339
2009-11-14 Bruce Korb <bkorb@gnu.org>
341
* src/uudecode.c (decode): break out some code to make it smaller.
342
Be certain to not include trailing white space in output file name.
343
<thanks to Daniel Richard G.>
344
(expand_tilde): one of those broken out functions
345
(reopen_output): the other
347
2009-03-29 Bruce Korb <bkorb@gnu.org>
349
* lib/ansi2knr.c: obsolete
350
* doc/ansi2knr.1: obsolete
352
2008-06-28 Bruce Korb <bkorb@gnu.org>
354
* src/shar.c (not restoring timestamps):
355
Do not concatenate translated strings.
356
* src/scripts.def: emit the one string, not two.
358
2006-08-30 Bruce Korb <bkorb@gnu.org>
360
* src/scripts.def: quote the heredoc marker. No shell evals.
362
2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
364
* tests/shar-3: Quote sed command, since it contains a ^,
365
and Solaris /bin/sh treats unquoted ^ like |. Problem
366
reported by Nelson H. F. Beebe.
368
2006-05-18 Bruce Korb <bkorb@gnu.org>
370
* bootstrap: add code to derive compress-dummy.1 from the script.
371
* configure.ac: Remember which dirent header was found
372
* src/shar.c: Use the #define name of the dirent header for #include
373
Remove our own private declarations of opendir and readdir.
374
* doc/Makefile.am(dist_man2_MANS): add compress-dummy.1
375
* src/compress-dummy.in: clarify the name of what it is.
377
2006-05-15 Bruno Haible <bruno@clisp.org>
379
* shar.c: declare readdir IFF readdir is not already a #define
381
2006-04-26 Pavel Roskin <proski@gnu.org>
383
* uudecode.c (read_stduu): Allow characters other than '\n'
384
after "end", viz., the DOS style newline "\r\n".
386
2006-03-24 Santiago Vila <sanvila@unex.es>
388
* uudecode.c(decode): make clear the name of the file causing problems
389
* shar.c(change_files): fix args to fprintf.
391
[[... see cvs ChangeLog.2005 ]]