[BACK]Return to gen-plist.c CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / FreeBSD / openxm-ports / openxm-1.1.2 / files

Diff for /OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2/files/gen-plist.c between version 1.1 and 1.6

version 1.1, 2000/03/02 10:32:39 version 1.6, 2000/03/10 15:09:39
Line 1 
Line 1 
 /* $OpenXM$ */  /* $OpenXM: OpenXM/misc/packages/FreeBSD/openxm-ports/openxm-1.1.2/files/gen-plist.c,v 1.5 2000/03/06 04:29:02 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
Line 20  main() {
Line 20  main() {
   struct stat sb;    struct stat sb;
   int p;    int p;
   
     /* Initial data */
     system("grep \'$OpenXM\' ../pkg/PLIST");
     printf("bin/asir\n");
     printf("bin/sm1\n");
     printf("bin/oxMathematica\n");
     printf("bin/oxmath\n");
     printf("bin/ox\n");
     printf("bin/oxgp\n");
     printf("bin/openxm\n");
     printf("man/man1/sm1.1.gz\n");
     printf("man/man1/openxm.1.gz\n");
   
   while (fgets(s0,512,stdin) != NULL) {    while (fgets(s0,512,stdin) != NULL) {
         n = strlen(s0);          n = strlen(s0);
         if (n <= 1) goto LLL;          if (n <= 1) goto LLL;
Line 58  main() {
Line 70  main() {
         if (isExclude(s,"doc/OpenXM-web")) goto LLL;          if (isExclude(s,"doc/OpenXM-web")) goto LLL;
         if (isExclude(s,"doc/Makefile")) goto LLL;          if (isExclude(s,"doc/Makefile")) goto LLL;
         if (isExclude(s,"doc/install")) goto LLL;          if (isExclude(s,"doc/install")) goto LLL;
           if (isExclude(s,"doc/compalg")) goto LLL;
   
   
         if (lstat(s,&sb) < 0) fprintf(stderr,"The file %s is not found.\n",s);          if (lstat(s,&sb) < 0) fprintf(stderr,"The file %s is not found.\n",s);
Line 76  main() {
Line 89  main() {
   LLL: ;    LLL: ;
   
   }    }
     printf("@dirrm OpenXM\n");
 }  }
   
 isExclude(char *s,char *pattern) {  isExclude(char *s,char *pattern) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>