home *** CD-ROM | disk | FTP | other *** search
- --- ./doc/uuencode.1.orig Tue Sep 26 10:25:13 1995
- +++ ./doc/uuencode.1 Mon Apr 28 08:12:46 1997
- @@ -42,7 +42,7 @@
- [\-m] [ file ] name
- .PP
- .B uudecode
- -[-o outfile] [ file ]...
- +[-m] [-o outfile] [ file ]...
- .SH DESCRIPTION
- .I Uuencode
- and
- @@ -91,6 +91,10 @@
- or
- .I name
- is /dev/stdout the result will be written to standard output.
- +.I Uudecode
- +will decode multiple files from a single input stream if the
- +.I -m
- +flag is used on the command line.
- .I Uudecode
- ignores any leading and trailing lines. The program can automatically decide
- which of the both supported encoding schemes are used.
- --- ./po/Makefile.in.in.orig Mon Dec 4 11:19:48 1995
- +++ ./po/Makefile.in.in Mon Apr 28 08:24:51 1997
- @@ -28,9 +28,9 @@
- prefix = @prefix@
- exec_prefix = @exec_prefix@
- datadir = $(prefix)/@DATADIRNAME@
- -localedir = $(datadir)/locale
- -gnulocaledir = $(prefix)/share/locale
- -gettextsrcdir = $(prefix)/share/gettext
- +localedir = <installsharedir>/slib/locale
- +gnulocaledir = <installsharedir>/slib/locale
- +gettextsrcdir = <installsharedir>/slib/gettext
- subdir = po
-
- INSTALL = @INSTALL@
- @@ -88,14 +88,16 @@
- all: cat-id-tbl.c $(CATALOGS)
-
- $(PACKAGE).pot: $(POTFILES)
- - $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
- + echo $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
- --add-comments --keyword=_ --keyword=N_ \
- --files-from=$(srcdir)/POTFILES.in
- - if cmp -s $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; then \
- - rm -f $(PACKAGE).po; \
- - else \
- - rm -f $(srcdir)/$(PACKAGE).pot \
- - && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; \
- + -if test -f $(PACKAGE).po ; then \
- + if cmp -s $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; then \
- + rm -f $(PACKAGE).po; \
- + else \
- + rm -f $(srcdir)/$(PACKAGE).pot \
- + && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; \
- + fi \
- fi
-
- cat-id-tbl.c: stamp-cat-id
- --- ./intl/Makefile.in.orig Mon Dec 4 11:19:40 1995
- +++ ./intl/Makefile.in Mon Apr 28 08:25:50 1997
- @@ -30,9 +30,9 @@
- libdir = $(prefix)/lib
- includedir = $(prefix)/include
- datadir = $(prefix)/@DATADIRNAME@
- -localedir = $(datadir)/locale
- -gnulocaledir = $(prefix)/share/locale
- -gettextsrcdir = $(prefix)/share/gettext
- +localedir = <installsharedir>/slib/locale
- +gnulocaledir = <installsharedir>/slib/locale
- +gettextsrcdir = <installsharedir>/slib/gettext
- aliaspath = $(localedir):.
- subdir = intl
-
- --- ./src/mail-files.in.orig Sat Nov 25 19:03:28 1995
- +++ ./src/mail-files.in Mon Apr 28 08:12:46 1997
- @@ -1,4 +1,4 @@
- -#! @SH@
- +#!<installdir>/bin/bash
- # Mail a list of files, as they are.
- # Copyright (C) 1990, 1995 Free Software Foundation, Inc.
- # Franτois Pinard <pinard@iro.umontreal.ca>, 1991.
- --- ./src/mailshar.in.orig Sat Nov 25 18:42:47 1995
- +++ ./src/mailshar.in Mon Apr 28 08:12:46 1997
- @@ -1,4 +1,4 @@
- -#! @SH@
- +#!<installdir>/bin/bash
- # Mail a multi-part shar from a list of files.
- # Copyright (C) 1990, 1994, 1995 Free Software Foundation, Inc.
- # Franτois Pinard <pinard@iro.umontreal.ca>, 1991.
- --- ./src/remsync.in.orig Sat Nov 25 19:15:12 1995
- +++ ./src/remsync.in Mon Apr 28 08:12:46 1997
- @@ -1,6 +1,6 @@
- -#! @PERL@
- +#!<installdir>/bin/perl -- # -*-Perl-*-
- # @configure_input@
- -eval "exec @PERL@ -S $0 $*"
- +eval "exec <installdir>/bin/perl -S $0 $*"
- if $running_under_some_shell;
-
- # Synchronization tool for remote directories.
- @@ -33,9 +33,9 @@
- $WORKDIR = ".remsync-work"; # directory name of unpacked synchro. package
- $ORDERS = "orders"; # file name containaing synchro. directives
-
- -$DIFF = "@DIFF@"; # GNU diff path
- -$TAR = "@TAR@"; # GNU tar path
- -$SH = "@SH@"; # Bash or sh path
- +$DIFF = "<installdir>/bin/diff"; # GNU diff path
- +$TAR = "<installdir>/bin/tar"; # GNU tar path
- +$SH = "<installdir>/bin/bash"; # Bash or sh path
-
- # Special constants.
-
- --- ./src/uudecode.c.orig Fri Dec 1 22:14:14 1995
- +++ ./src/uudecode.c Mon Apr 28 08:12:46 1997
- @@ -65,11 +65,18 @@
- static struct option longopts[] =
- {
- { "version", no_argument, NULL, 'v' },
- + { "multiple", no_argument, NULL, 'm' },
- { "help", no_argument, NULL, 'h' },
- { "output-file", required_argument, NULL, 'o' },
- { NULL, 0, NULL, 0 }
- };
-
- +#ifndef FALSE
- +#define FALSE 0
- +#define TRUE 1
- +#endif
- +static int multiple = FALSE;
- +
- static int read_stduu __P ((const char *inname));
- static int read_base64 __P ((const char *inname));
- static int decode __P ((const char *, const char *));
- @@ -279,87 +286,95 @@
- char buf[2 * BUFSIZ];
- char *outname;
- int do_base64 = 0;
- + int first = 1;
- + int ret;
-
- /* Search for header line. */
-
- - while (1)
- + while (multiple || first)
- {
- - if (fgets (buf, sizeof (buf), stdin) == NULL)
- - {
- - error (0, 0, _("%s: No `begin' line"), inname);
- - return 1;
- - }
- -
- - if (strncmp (buf, "begin", 5) == 0)
- - {
- - if (sscanf (buf, "begin-base64 %o %s", &mode, buf) == 2)
- - {
- - do_base64 = 1;
- - break;
- - }
- - else if (sscanf (buf, "begin %o %s", &mode, buf) == 2)
- - break;
- - }
- - }
- -
- - /* If the output file name is given on the command line this rules. */
- - if (forced_outname != NULL)
- - outname = (char *) forced_outname;
- - else
- - {
- - /* Handle ~user/file format. */
- -
- - if (buf[0] != '~')
- - outname = buf;
- + while (1)
- + {
- + if (fgets (buf, sizeof (buf), stdin) == NULL)
- + {
- + if (!first) return 0;
- + error (0, 0, _("%s: No `begin' line"), inname);
- + return 1;
- + }
- +
- + if (strncmp (buf, "begin", 5) == 0)
- + {
- + if (sscanf (buf, "begin-base64 %o %s", &mode, buf) == 2)
- + {
- + do_base64 = 1;
- + break;
- + }
- + else if (sscanf (buf, "begin %o %s", &mode, buf) == 2)
- + break;
- + }
- + }
- +
- + /* If the output file name is given on the command line this rules. */
- + if (forced_outname != NULL)
- + outname = (char *) forced_outname;
- else
- - {
- - p = buf + 1;
- - while (*p != '/')
- - ++p;
- - if (*p == '\0')
- - {
- - error (0, 0, _("%s: Illegal ~user"), inname);
- - return 1;
- - }
- - *p++ = '\0';
- - pw = getpwnam (buf + 1);
- - if (pw == NULL)
- - {
- - error (0, 0, _("%s: No user `%s'"), inname, buf + 1);
- - return 1;
- - }
- - n = strlen (pw->pw_dir);
- - n1 = strlen (p);
- - outname = (char *) alloca ((size_t) (n + n1 + 2));
- - memcpy (outname + n + 1, p, (size_t) (n1 + 1));
- - memcpy (outname, pw->pw_dir, (size_t) n);
- - outname[n] = '/';
- - }
- - }
- + {
- + /* Handle ~user/file format. */
- +
- + if (buf[0] != '~')
- + outname = buf;
- + else
- + {
- + p = buf + 1;
- + while (*p != '/')
- + ++p;
- + if (*p == '\0')
- + {
- + error (0, 0, _("%s: Illegal ~user"), inname);
- + return 1;
- + }
- + *p++ = '\0';
- + pw = getpwnam (buf + 1);
- + if (pw == NULL)
- + {
- + error (0, 0, _("%s: No user `%s'"), inname, buf + 1);
- + return 1;
- + }
- + n = strlen (pw->pw_dir);
- + n1 = strlen (p);
- + outname = (char *) alloca ((size_t) (n + n1 + 2));
- + memcpy (outname + n + 1, p, (size_t) (n1 + 1));
- + memcpy (outname, pw->pw_dir, (size_t) n);
- + outname[n] = '/';
- + }
- + }
-
- - /* Create output file and set mode. */
- + /* Create output file and set mode. */
-
- - if (strcmp (outname, "/dev/stdout") != 0 && strcmp (outname, "-") != 0
- - && (freopen (outname, "w", stdout) == NULL
- + if (strcmp (outname, "/dev/stdout") != 0 && strcmp (outname, "-") != 0
- + && (freopen (outname, "w", stdout) == NULL
- #if HAVE_FCHMOD
- - || fchmod (fileno (stdout), mode & (S_IRWXU | S_IRWXG | S_IRWXO))
- + || fchmod (fileno (stdout), mode & (S_IRWXU | S_IRWXG | S_IRWXO))
- #else
- - || chmod (outname, mode & (S_IRWXU | S_IRWXG | S_IRWXO))
- + || chmod (outname, mode & (S_IRWXU | S_IRWXG | S_IRWXO))
- #endif
- - ))
- - {
- - error (0, errno, "%s: %s", outname, inname);
- - return 1;
- + ))
- + {
- + error (0, errno, "%s: %s", outname, inname);
- + return 1;
- + }
- +
- + /* We differenciate decoding standard UU encoding and base64. A
- + common function would only slow down the program. */
- +
- + /* For each input line: */
- + if (do_base64)
- + ret = read_base64 (inname);
- + else
- + ret = read_stduu (inname);
- + if (ret) return ret;
- + first = 0;
- }
- -
- - /* We differenciate decoding standard UU encoding and base64. A
- - common function would only slow down the program. */
- -
- - /* For each input line: */
- - if (do_base64)
- - return read_base64 (inname);
- - else
- - return read_stduu (inname);
- }
-
- static void
- @@ -375,6 +390,7 @@
- printf (_("\
- Mandatory arguments to long options are mandatory to short options too.\n\
- -h, --help display this help and exit\n\
- + -m, --multiple decode multiple files if appropriate\n\
- -v, --version output version information and exit\n\
- -o, --output-file=FILE direct output to FILE\n"));
- }
- @@ -398,7 +414,7 @@
- bindtextdomain (PACKAGE, LOCALEDIR);
- textdomain (PACKAGE);
-
- - while (opt = getopt_long (argc, argv, "ho:v", longopts, (int *) NULL),
- + while (opt = getopt_long (argc, argv, "ho:vm", longopts, (int *) NULL),
- opt != EOF)
- {
- switch (opt)
- @@ -410,8 +426,12 @@
- outname = optarg;
- break;
-
- + case 'm':
- + multiple = TRUE;
- + break;
- +
- case 'v':
- - printf ("%s - GNU %s %s\n", program_name, PACKAGE, VERSION);
- + printf ("%s - GNU %s %sRTR\n", program_name, PACKAGE, VERSION);
- exit (EXIT_SUCCESS);
-
- case 0:
- --- ./src/Makefile.in.orig Sat Nov 25 16:37:27 1995
- +++ ./src/Makefile.in Mon Apr 28 08:12:46 1997
- @@ -31,7 +31,7 @@
- transform = @program_transform_name@
- bindir = $(exec_prefix)/bin
- datadir = $(prefix)/@DATADIRNAME@
- -localedir = $(datadir)/locale
- +localedir = <installsharedir>/slib/locale
- subdir = src
-
- AR = ar
- --- doc/Makefile.in.orig Fri Nov 24 21:44:35 1995
- +++ doc/Makefile.in Mon Apr 28 09:49:58 1997
- @@ -100,14 +100,10 @@
- test -z "$(MAN5PAGES)" || $(top_srcdir)/mkinstalldirs $(man5dir)
- for name in $(MAN1PAGES); do \
- if test $$name = uudecode; then \
- - rm -f $(man1dir)/`echo uudecode | sed '$(transform)'`$(man1ext); \
- - man1base=`echo $(man1dir) | sed 's@.*/\(.*\)@&1@'`; \
- - echo ".so $$man1base/uuencode$(man1ext)" \
- - > $(man1dir)/`echo uudecode | sed '$(transform)'`$(man1ext); \
- - else \
- + cp $(srcdir)/uuencode.1 $(srcdir)/uudecode.1; \
- + fi; \
- $(INSTALL_DATA) $(srcdir)/$$name.1 \
- $(man1dir)/`echo $$name | sed '$(transform)'`$(man1ext); \
- - fi; \
- done
- test -z "$(MAN5PAGES)" || \
- for name in $(MAN5PAGES); do \
-