makehistory sort patch

George Lindholm George.Lindholm at ubc.ca
Wed Aug 25 21:40:04 UTC 1999


I noticed that while rebuilding my history/overview files from
scratch that makehistory doesn't use the sort given to
configure.

   George
-- 
George.Lindholm at ubc.ca       ITServices, UBC
Programmer/Analyst

phone:    604.822.4375       fax:      604.822.5116

-- Attached file included as plaintext by Listar --
-- File: makehistory.pa

*** include/config.h.in	1999/08/25 21:25:10	1.1
--- include/config.h.in	1999/08/25 21:29:25
***************
*** 234,237 ****
--- 234,240 ----
  /* define to compile in Python filter support */
  #@DO_PYTHON@ DO_PYTHON
  
+ /* sort program for makehistory */
+ #define SORT_PGM	"@_PATH_SORT@"
+ 
  #endif /* __CONFIG_H__ */
*** expire/makehistory.c	1999/08/25 21:31:56	1.1
--- expire/makehistory.c	1999/08/25 21:35:34
***************
*** 195,207 ****
      mktemp(temp);
      SortedTmpPath = COPY(temp);
  
!     sprintf(temp, "exec sort -T %s -t'%c' -o %s %s",
  	    TmpDir, '\t', SortedTmpPath, OverTmpPath);
      
      i = system(temp) >> 8;
      if (i != 0) {
! 	fprintf(stderr, "makehistory: Can't sort OverTmp file (exit %d), %s\n",
! 		i, strerror(errno));
  	exit(1);
      }
  
--- 195,207 ----
      mktemp(temp);
      SortedTmpPath = COPY(temp);
  
!     sprintf(temp, "exec %s -T %s -t'%c' -o %s %s", SORT_PGM,
  	    TmpDir, '\t', SortedTmpPath, OverTmpPath);
      
      i = system(temp) >> 8;
      if (i != 0) {
! 	fprintf(stderr, "makehistory: Can't sort OverTmp file (%s exit %d), %s\n",
! 		SORT_PGM, i, strerror(errno));
  	exit(1);
      }
  




More information about the inn-patches mailing list