version 1.1, 2000/03/02 10:32:39 |
version 1.6, 2000/03/10 15:09:39 |
|
|
/* $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> |
|
|
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; |
|
|
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); |
|
|
LLL: ; |
LLL: ; |
|
|
} |
} |
|
printf("@dirrm OpenXM\n"); |
} |
} |
|
|
isExclude(char *s,char *pattern) { |
isExclude(char *s,char *pattern) { |