723 |
STRBUF *sb = strbuf_open(0); |
STRBUF *sb = strbuf_open(0); |
724 |
|
|
725 |
if (other_files && !dynamic) |
if (other_files && !dynamic) |
726 |
snprintf(command, sizeof(command), "%s --other | sort -t / -k 2", findcom); |
snprintf(command, sizeof(command), "%s --other | gnusort -t / -k 2", findcom); |
727 |
else |
else |
728 |
strlimcpy(command, findcom, sizeof(command)); |
strlimcpy(command, findcom, sizeof(command)); |
729 |
ip = popen(command, "r"); |
ip = popen(command, "r"); |
855 |
} |
} |
856 |
strbuf_puts(sb, "<H2>MAINS</H2>\n"); |
strbuf_puts(sb, "<H2>MAINS</H2>\n"); |
857 |
|
|
858 |
snprintf(command, sizeof(command), "%s -nx %s | sort -k 1,1 -k 3,3 -k 2,2n", global_path, main_func); |
snprintf(command, sizeof(command), "%s -nx %s | gnusort -k 1,1 -k 3,3 -k 2,2n", global_path, main_func); |
859 |
ip = popen(command, "r"); |
ip = popen(command, "r"); |
860 |
if (!ip) |
if (!ip) |
861 |
die("cannot execute command '%s'.", command); |
die("cannot execute command '%s'.", command); |
907 |
/* |
/* |
908 |
* COMMAND EXISTENCE CHECK |
* COMMAND EXISTENCE CHECK |
909 |
*/ |
*/ |
910 |
if (!(p = usable("sort"))) |
if (!(p = usable("gnusort"))) |
911 |
die("sort command required but not found."); |
die("gnusort command required but not found."); |
912 |
strlimcpy(sort_path, p, sizeof(sort_path)); |
strlimcpy(sort_path, p, sizeof(sort_path)); |
913 |
if (!(p = usable("gtags"))) |
if (!(p = usable("gtags"))) |
914 |
die("gtags command required but not found."); |
die("gtags command required but not found."); |