home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / PSTEXT / RTR / PSTEXT. next >
Encoding:
Text File  |  1998-07-24  |  709 b   |  32 lines

  1. --- Makefile.orig    Mon Feb  3 10:00:16 1997
  2. +++ Makefile    Mon Feb  3 10:01:28 1997
  3. @@ -1,5 +1,6 @@
  4. -CC= /bin/cc
  5. -DEST= /usr/local/sto/pstext
  6. +CC= cc
  7. +DEST= <installdir>/bin
  8. +MAN= <installsharedir>/man/man1
  9.  PSTEXT_SRC=    pstext.c
  10.  PSTEXT_OBJ=    pstext.o
  11.  
  12. @@ -10,6 +11,7 @@
  13.      $(CC) -o pstext $(PSTEXT_OBJ)
  14.  
  15.  install: 
  16. -    install -c -m755 -o bin -g bin pstext $(DEST)
  17. +    install -c -m755 pstext $(DEST)
  18. +    install -c pstext.1 $(MAN)
  19.  clean:    
  20.      rm -f $(PSTEXT_OBJ) pstext a.out core
  21. --- pstext.c.orig    Mon Feb  3 10:00:17 1997
  22. +++ pstext.c    Mon Feb  3 10:00:18 1997
  23. @@ -193,7 +193,7 @@
  24.   getfile(fpin,fpout)
  25.    FILE *fpin,*fpout;
  26.    {
  27. -   char ch;
  28. +   int ch;
  29.  
  30.     fprintf(fpout,"(");
  31.     while ((ch=getc(fpin))!=EOF) {
  32.