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 */ |
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) { |
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; |