/[global]/global/global/global.c
ViewVC logotype

Diff of /global/global/global.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.81 by shigio, Fri Nov 5 15:34:43 2004 UTC revision 1.82 by shigio, Sun Nov 7 12:24:11 2004 UTC
# Line 62  int search(char *, char *, char *, int); Line 62  int search(char *, char *, char *, int);
62  int includepath(char *, char *);  int includepath(char *, char *);
63  void ffformat(char *, int, char *);  void ffformat(char *, int, char *);
64    
 char sort_command[MAXFILLEN+1]; /* sort command         */  
65  STRBUF *sortfilter;                     /* sort filter          */  STRBUF *sortfilter;                     /* sort filter          */
66  STRBUF *pathfilter;                     /* path convert filter  */  STRBUF *pathfilter;                     /* path convert filter  */
67  char *localprefix;                      /* local prefix         */  char *localprefix;                      /* local prefix         */
# Line 361  main(argc, argv) Line 360  main(argc, argv)
360                  exit(0);                  exit(0);
361          }          }
362          /*          /*
          * get command name of sort.  
          */  
         {  
                 STRBUF  *sb = strbuf_open(0);  
                 if (!getconfs("sort_command", sb))  
                         die("cannot get sort command name.");  
 #if defined(_WIN32) || defined(__DJGPP__)  
                 if (!locatestring(strbuf_value(sb), ".exe", MATCH_LAST))  
                         strbuf_puts(sb, ".exe");  
 #endif  
                 strlimcpy(sort_command, strbuf_value(sb), sizeof(sort_command));  
                 strbuf_close(sb);  
         }  
         /*  
363           * make local prefix.           * make local prefix.
364           */           */
365          if (lflag) {          if (lflag) {
# Line 402  main(argc, argv) Line 387  main(argc, argv)
387                  int unique = 0;                  int unique = 0;
388    
389                  sortfilter = strbuf_open(0);                  sortfilter = strbuf_open(0);
390                  strbuf_puts(sortfilter, sort_command);                  strbuf_puts(sortfilter, "gnusort");
391                  if (sflag) {                  if (sflag) {
392                          strbuf_puts(sortfilter, " -u");                          strbuf_puts(sortfilter, " -u");
393                          unique = 1;                          unique = 1;

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26