From 852df5a4bca0e1a04205d6174789ce30fc96ec45 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 15 Apr 2008 23:20:46 +0000 Subject: use one makecpool for all programs git-svn-id: svn://tug.org/texlive/trunk@7433 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/alephdir/aleph.mk | 8 +--- Build/source/texk/web2c/alephdir/makecpool.c | 67 ---------------------------- 2 files changed, 2 insertions(+), 73 deletions(-) delete mode 100644 Build/source/texk/web2c/alephdir/makecpool.c (limited to 'Build/source/texk/web2c/alephdir') diff --git a/Build/source/texk/web2c/alephdir/aleph.mk b/Build/source/texk/web2c/alephdir/aleph.mk index 386bb478e9e..6ace4bd3781 100644 --- a/Build/source/texk/web2c/alephdir/aleph.mk +++ b/Build/source/texk/web2c/alephdir/aleph.mk @@ -122,12 +122,8 @@ aleph.ch: $(calephdir)/ceostuff.ch $(srcdir)/$(calephdir)/comsrcspec.ch \ $(srcdir)/$(calephdir)/ceostuff.ch -aleph-pool.c: aleph.pool alephdir/makecpool - alephdir/makecpool aleph.pool alephdir/aleph-pool.h >aleph-pool.c -alephdir/makecpool: alephdir/makecpool.o - $(CC) $(CFLAGS) -o $@ alephdir/makecpool.o -alephdir/makecpool.o: $(srcdir)/alephdir/makecpool.c - $(CC) $(CFLAGS) -c -o $@ $(srcdir)/alephdir/makecpool.c +aleph-pool.c: aleph.pool $(makecpool) + $(makecpool) aleph.pool alephdir/aleph-pool.h >$@ || rm -f $@ # Check: right now all we do is build the format. check: @ALEPH@ aleph-check diff --git a/Build/source/texk/web2c/alephdir/makecpool.c b/Build/source/texk/web2c/alephdir/makecpool.c deleted file mode 100644 index 4a928068208..00000000000 --- a/Build/source/texk/web2c/alephdir/makecpool.c +++ /dev/null @@ -1,67 +0,0 @@ -/* Copyright 2007, 2008 Taco Hoekwater. - You may freely use, modify and/or distribute this file. */ - -#include -#include -#include - -int main(int argc, char *argv[]) { - char *filename; - char *headername; - FILE *fh; - char data[1024]; - if (argc!=3) { - puts("Need exactly two arguments: pool_name and header_name"); - exit(1); - } - filename = argv[1]; - headername = argv[2]; - fh = fopen(filename,"r"); - printf( - "/* This file is auto-generated by makecpool */\n" - "\n" - "#include \n" - "#include \n" - "#include \"%s\"\n" - "\n" - "static char *poolfilearr[] = {\n",headername); - while (fgets(data,1024,fh)) { - int len = strlen(data); - int o = 0; /* skip first o characters*/ - int i; - if (data[len-1]=='\n') { /* chomp;*/ - data[len-1] = 0; - len--; - } - if (data[0]=='*') break; /* last if !^\*!; */ - if (data[0]>='0' && data[0]<='9' && data[1]>='0' && data[1]<='9') { - o=2; /* $data =~ s/^\d\d//; */ - } - printf(" \""); - for (i=o; i=spare_size) return 0;\n" - " while (l-- > 0) strpool[poolptr++] = *s++;\n" - /* " while (l-- > 0) str_pool[pool_ptr++] = *s++;\n" */ - " g = makestring();\n" - /* " g = make_string();\n" */ - /* " strref[g]= 127;\n"*/ - " }\n" - " return g;\n" - "}\n"); - return 0; -} -- cgit v1.2.3