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

Diff of /global/htags/htags.c

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

revision 1.73 by shigio, Tue Oct 25 01:54:31 2005 UTC revision 1.74 by shigio, Thu Oct 27 06:33:35 2005 UTC
# Line 754  makehtml(int total) Line 754  makehtml(int total)
754           *      anchor_stream: for anchor_load().           *      anchor_stream: for anchor_load().
755           */           */
756          if (other_files && !dynamic)          if (other_files && !dynamic)
757                  snprintf(command, sizeof(command), "%s --other | gnusort -t / -k 2", findcom);                  snprintf(command, sizeof(command), "%s --other | %s -t / -k 2", findcom, POSIX_SORT);
758          else          else
759                  strlimcpy(command, findcom, sizeof(command));                  strlimcpy(command, findcom, sizeof(command));
760          ip = popen(command, "r");          ip = popen(command, "r");
# Line 897  makecommonpart(const char *title, const Line 897  makecommonpart(const char *title, const
897          }          }
898          strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end);          strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end);
899    
900          snprintf(command, sizeof(command), "%s -nx %s | gnusort -k 1,1 -k 3,3 -k 2,2n", global_path, main_func);          snprintf(command, sizeof(command), "%s -nx %s | %s -k 1,1 -k 3,3 -k 2,2n", global_path, main_func, POSIX_SORT);
901          ip = popen(command, "r");          ip = popen(command, "r");
902          if (!ip)          if (!ip)
903                  die("cannot execute command '%s'.", command);                  die("cannot execute command '%s'.", command);
# Line 958  basic_check(void) Line 958  basic_check(void)
958          /*          /*
959           * COMMAND EXISTENCE CHECK           * COMMAND EXISTENCE CHECK
960           */           */
961          if (!(p = usable("gnusort")))          if (!(p = usable(POSIX_SORT)))
962                  die("gnusort command required but not found.");                  die("%s command required but not found.", POSIX_SORT);
963          strlimcpy(sort_path, p, sizeof(sort_path));          strlimcpy(sort_path, p, sizeof(sort_path));
964          if (!(p = usable("gtags")))          if (!(p = usable("gtags")))
965                  die("gtags command required but not found.");                  die("gtags command required but not found.");

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

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