]> git.pld-linux.org Git - packages/coreutils.git/blobdiff - coreutils-install-C.patch
- Changed the meaning of -n: it only sets the space between sentences,
[packages/coreutils.git] / coreutils-install-C.patch
index c53785b5c854fe3f605317c2075825b0a844b62c..9cafe8571b74a30dc9332050ffd837d9a889c9c8 100644 (file)
@@ -13,28 +13,27 @@ diff -Nur coreutils-4.5.3.orig/doc/coreutils.texi coreutils-4.5.3/doc/coreutils.
  @item -c
  @opindex -c
  Ignored; for compatibility with old Unix versions of @command{install}.
-diff -Nur coreutils-4.5.3.orig/src/install.c coreutils-4.5.3/src/install.c
---- coreutils-4.5.3.orig/src/install.c Thu Sep 26 10:39:20 2002
-+++ coreutils-4.5.3/src/install.c      Sun Oct 27 22:48:17 2002
-@@ -25,6 +25,7 @@
+--- coreutils-6.3/src/install.c.orig   2006-09-16 23:47:24.000000000 +0200
++++ coreutils-6.3/src/install.c        2006-10-10 22:23:44.854022500 +0200
+@@ -21,6 +21,7 @@
  #include <stdio.h>
  #include <getopt.h>
  #include <sys/types.h>
 +#include <sys/mman.h>
+ #include <signal.h>
  #include <pwd.h>
  #include <grp.h>
-@@ -113,6 +114,9 @@
-    no effect. */
- static mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
+@@ -114,6 +115,9 @@
+    or S_ISGID bits.  */
+ static mode_t dir_mode_bits = CHMOD_MODE_BITS;
  
 +/* Compare files before installing (-C) */
 +static int docompare=0;
 +
- /* If nonzero, strip executable files after copying them. */
- static int strip_files;
+ /* If true, strip executable files after copying them. */
+ static bool strip_files;
  
-@@ -136,6 +140,82 @@
+@@ -138,6 +142,82 @@
    {NULL, 0, NULL, 0}
  };
  
@@ -117,16 +116,16 @@ diff -Nur coreutils-4.5.3.orig/src/install.c coreutils-4.5.3/src/install.c
  static void
  cp_option_init (struct cp_options *x)
  {
-@@ -206,7 +286,7 @@
+@@ -242,7 +322,7 @@
       we'll actually use backup_suffix_string.  */
    backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX");
  
--  while ((optc = getopt_long (argc, argv, "bcsDdg:m:o:pvV:S:", long_options,
-+  while ((optc = getopt_long (argc, argv, "bcCsDdg:m:o:pvV:S:", long_options,
+-  while ((optc = getopt_long (argc, argv, "bcsDdg:m:o:pt:TvS:", long_options,
++  while ((optc = getopt_long (argc, argv, "bcCsDdg:m:o:pt:TvS:", long_options,
                              NULL)) != -1)
      {
        switch (optc)
-@@ -228,6 +308,9 @@
+@@ -254,6 +334,9 @@
          break;
        case 'c':
          break;
@@ -134,23 +133,23 @@ diff -Nur coreutils-4.5.3.orig/src/install.c coreutils-4.5.3/src/install.c
 +        docompare=1;
 +        break;
        case 's':
-         strip_files = 1;
-         break;
-@@ -436,6 +519,12 @@
-       return 1;
-     }
+         strip_files = true;
+ #ifdef SIGCHLD
+@@ -494,6 +577,12 @@
+      However, since !x->recursive, the call to "copy" will fail if FROM
+      is a directory.  */
  
 +  if (docompare)
 +    {
-+      if(compare(from, to)==0) /* Files are identical */
-+      return 0;
++      if(compare(from, to) == 0) /* Files are identical */
++      return true;
 +    }
 +  
-   fail = copy (from, to, nonexistent_dst, x, &copy_into_self, NULL);
+   return copy (from, to, false, x, &copy_into_self, NULL);
+ }
  
-   return fail;
-@@ -613,6 +702,9 @@
-       --backup[=CONTROL] make a backup of each existing destination file\n\
+@@ -667,6 +756,9 @@
+       --backup[=CONTROL]  make a backup of each existing destination file\n\
    -b                  like --backup but does not accept an argument\n\
    -c                  (ignored)\n\
 +  -C                  install file, unless the target already exists and is the\n\
@@ -159,10 +158,10 @@ diff -Nur coreutils-4.5.3.orig/src/install.c coreutils-4.5.3/src/install.c
    -d, --directory     treat all arguments as directory names; create all\n\
                          components of the specified directories\n\
  "), stdout);
---- coreutils-4.5.3.orig/po/pl.po      Fri Nov  1 02:30:38 2002
-+++ coreutils-4.5.3/po/pl.po   Fri Nov  1 02:45:24 2002
-@@ -2890,12 +2890,18 @@
- "      --backup[=CONTROL] make a backup of each existing destination file\n"
+--- coreutils-6.4/po/pl.po.orig        2006-10-24 22:32:17.793354500 +0200
++++ coreutils-6.4/po/pl.po     2006-10-24 22:34:53.511086250 +0200
+@@ -3999,12 +3999,18 @@
+ "      --backup[=CONTROL]  make a backup of each existing destination file\n"
  "  -b                  like --backup but does not accept an argument\n"
  "  -c                  (ignored)\n"
 +"  -C                  install file, unless the target already exists and is the\n"
@@ -171,12 +170,12 @@ diff -Nur coreutils-4.5.3.orig/src/install.c coreutils-4.5.3/src/install.c
  "  -d, --directory     treat all arguments as directory names; create all\n"
  "                        components of the specified directories\n"
  msgstr ""
- "      --backup[=TRYB] robienie kopii zapasowej ka¿dego pliku docelowego\n"
+ "      --backup[=TRYB]  robienie kopii zapasowej przed zamazaniem pliku\n"
  "  -b                  jak --backup, ale bez podawania argumentu\n"
  "  -c                  (ignorowane)\n"
 +"  -C                  instalowanie pliku, chyba ¿e plik docelowy ju¿ istnieje\n"
 +"                        i jest taki sam - wtedy mtime pozostanie nie zmieniony\n"
 +"                        (dla kompatybilno¶ci z *BSD)\n"
- "  -d, --directory     traktowanie wszystkich argumentów jako nazw katalogów;\n"
- "                        tworzenie wszystkich sk³adników podanych katalogów\n"
+ "  -d, --directory     traktowanie wszystkich argumentów jako nazw "
+ "katalogów;\n"
+ "                        tworzenie katalogów sk³adowych podanych katalogów\n"
This page took 0.12727 seconds and 4 git commands to generate.