1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

(main): Pass the -u option to sort in ctags mode.

This commit is contained in:
Francesco Potortì 2007-01-02 11:28:13 +00:00
parent c0e4af8a52
commit 660222c758

View File

@ -1460,8 +1460,11 @@ main (argc, argv)
if (CTAGS)
if (append_to_tagfile || update)
{
char cmd[2*BUFSIZ+10];
sprintf (cmd, "sort -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile);
char cmd[2*BUFSIZ+20];
/* Maybe these should be used:
setenv ("LC_COLLATE", "C", 1);
setenv ("LC_ALL", "C", 1); */
sprintf (cmd, "sort -u -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile);
exit (system (cmd));
}
return EXIT_SUCCESS;