home *** CD-ROM | disk | FTP | other *** search
- diff -cbr Orig/combine/Makefile WWWCount/combine/Makefile
- *** Orig/combine/Makefile Mon Sep 18 01:48:20 1995
- --- WWWCount/combine/Makefile Wed Dec 13 15:56:52 1995
- ***************
- *** 4,46 ****
- # 07-11-95
- # 09-17-95 (Count 1.5)
-
- ! CC= gcc
- ! RM=rm -f
- ! AR= ar cq
-
- # for SYSV use RANLIB=echo
- # RANLIB=echo
- ! RANLIB= ranlib
-
- INCDIR= -I. -I..
-
- ! # replace -O with -g in order to debug
- ! CDEBUGFLAGS= -O -D__USE_FIXED_PROTOTYPES__
- ! CFLAGS= $(CDEBUGFLAGS) $(INCDIR)
-
- SRCS = comnine.c crbasei.c allocim.c readgif.c rddata.c dstraimg.c\
- readblk.c lzwdec.c syncimg.c duplicim.c writegif.c lsbfwrs.c\
- lzenc.c uncmpimg.c readim.c flatten.c signature.c quantize.c\
- compimg.c rgbtran.c tranrgb.c compcmap.c frameim.c modulate.c\
- alphaim.c setpixel.c getfinfo.c imgstr.c gdfonts.c
- ! OBJS = combine.o crbasei.o allocim.o readgif.o rddata.o dstraimg.o\
- ! readblk.o lzwdec.o syncimg.o duplicim.o writegif.o lsbfwrs.o\
- ! lzwenc.o uncmpimg.o readim.o flatten.o signature.o quantize.o\
- ! compimg.o rgbtran.o tranrgb.o compcmap.o frameim.o modulate.o\
- ! alphaim.o setpixel.o getfinfo.o imgstr.o gdfonts.o
-
- ! .c.o:
- ! $(RM) $@
- $(CC) -c $(CFLAGS) $*.c
-
- ! all: libCombine.a
-
- ! libCombine.a: $(OBJS)
- $(RM) $@
- $(AR) $@ $(OBJS)
- $(RANLIB) $@
-
- ! combine.o: combine.h
-
- clean:
- ! $(RM) *.o libCombine.a core
- --- 4,45 ----
- # 07-11-95
- # 09-17-95 (Count 1.5)
-
- ! CC = gcc
- ! RM = rm -f
- ! AR = ar cr
-
- # for SYSV use RANLIB=echo
- # RANLIB=echo
- ! RANLIB = ar s
-
- INCDIR= -I. -I..
-
- ! CFLAGS= $(INCDIR)
-
- SRCS = comnine.c crbasei.c allocim.c readgif.c rddata.c dstraimg.c\
- readblk.c lzwdec.c syncimg.c duplicim.c writegif.c lsbfwrs.c\
- lzenc.c uncmpimg.c readim.c flatten.c signature.c quantize.c\
- compimg.c rgbtran.c tranrgb.c compcmap.c frameim.c modulate.c\
- alphaim.c setpixel.c getfinfo.c imgstr.c gdfonts.c
- ! OBJS = combine$O crbasei$O allocim$O readgif$O rddata$O dstraimg$O\
- ! readblk$O lzwdec$O syncimg$O duplicim$O writegif$O lsbfwrs$O\
- ! lzwenc$O uncmpimg$O readim$O flatten$O signature$O quantize$O\
- ! compimg$O rgbtran$O tranrgb$O compcmap$O frameim$O modulate$O\
- ! alphaim$O setpixel$O getfinfo$O imgstr$O gdfonts$O
-
- ! .SUFFIXES: .c $O
- !
- ! .c$O:
- $(CC) -c $(CFLAGS) $*.c
-
- ! all: combine$A
-
- ! combine$A: $(OBJS)
- $(RM) $@
- $(AR) $@ $(OBJS)
- $(RANLIB) $@
-
- ! combine$O: combine.h
-
- clean:
- ! $(RM) *$O combine$A core
- diff -cbr Orig/config.h WWWCount/config.h
- *** Orig/config.h Mon Sep 18 01:47:38 1995
- --- WWWCount/config.h Wed Dec 13 14:19:44 1995
- ***************
- *** 29,40 ****
- ** base directory of the configuration file.
- ** do not end the string with /
- */
- ! #define ConfigDir "/usr/local/etc/Counter/conf"
- /*
- ** name of the configuration file
- ** look at the example file "count.conf" for the format of this file
- */
- ! #define ConfigFile "count.conf"
-
- /*------------------------------------*/
-
- --- 29,40 ----
- ** base directory of the configuration file.
- ** do not end the string with /
- */
- ! /* #define ConfigDir "/usr/local/etc/Counter/conf" */
- /*
- ** name of the configuration file
- ** look at the example file "count.conf" for the format of this file
- */
- ! /* #define ConfigFile "count.conf" */
-
- /*------------------------------------*/
-
- ***************
- *** 50,56 ****
- **
- ** DO NOT end the string with a /, it will be added later
- */
- ! #define DigitDir "/usr/local/etc/Counter/digits"
-
- /*------------------------------------*/
-
- --- 50,56 ----
- **
- ** DO NOT end the string with a /, it will be added later
- */
- ! /* #define DigitDir "/usr/local/etc/Counter/digits" */
-
- /*------------------------------------*/
-
- ***************
- *** 61,78 ****
- ** DO NOT end the string with a /, it will be added later
- ** no need to define datafile name, it will be given while calling
- */
- ! #define DataDir "/usr/local/etc/Counter/data"
-
- /*------------------------------------*/
-
- /*
- ** base directory of the log file
- */
- ! #define LogDir "/usr/local/etc/Counter/logs"
- /*
- ** name of log file. Error and log messages will be written to this
- */
- ! #define LogFile "Count15.log"
-
- #endif /* _COUNT_CONFIG_H*/
-
- --- 61,84 ----
- ** DO NOT end the string with a /, it will be added later
- ** no need to define datafile name, it will be given while calling
- */
- ! /* #define DataDir "/usr/local/etc/Counter/data" */
-
- /*------------------------------------*/
-
- /*
- ** base directory of the log file
- */
- ! /* #define LogDir "/usr/local/etc/Counter/logs" */
- /*
- ** name of log file. Error and log messages will be written to this
- */
- ! /* #define LogFile "Count15.log" */
-
- #endif /* _COUNT_CONFIG_H*/
-
- + extern char ConfigDir[];
- + extern char ConfigFile[];
- + extern char DigitDir[];
- + extern char DataDir[];
- + extern char LogDir[];
- + extern char LogFile[];
- diff -cbr Orig/count.h WWWCount/count.h
- *** Orig/count.h Sun Sep 17 19:05:44 1995
- --- WWWCount/count.h Wed Dec 13 19:19:00 1995
- ***************
- *** 241,244 ****
- --- 241,247 ----
- unsigned int
- CheckRemoteIP _Declare ((char *, char *));
-
- + void
- + GetDirs _Declare ((void));
- +
- #endif /* _COUNT_H */
- diff -cbr Orig/main.c WWWCount/main.c
- *** Orig/main.c Sun Sep 17 15:49:06 1995
- --- WWWCount/main.c Wed Dec 13 19:20:10 1995
- ***************
- *** 48,53 ****
- --- 48,59 ----
- "six", "seven", "eight", "nine",
- };
-
- + char ConfigDir[512];
- + char ConfigFile[512];
- + char DigitDir[512];
- + char DataDir[512];
- + char LogDir[512];
- + char LogFile[512];
-
- void main (argc, argv)
- int
- ***************
- *** 127,135 ****
- --- 133,145 ----
- *rem_refh;
- #endif
-
- + _fsetmode(stdout, "b");
- + setmode(1, O_BINARY);
- +
- /*
- **---------initialize globals------Starts---
- */
- + GetDirs();
- for (i=0; i < MaxSites; i++)
- {
- GrefererHost[i] = (char *) NULL;
- ***************
- *** 801,803 ****
- --- 811,846 ----
- }
- }
-
- + void GetDirs()
- + {
- + char path[512], buffer[512], *ptr, *value;
- + FILE *cfg;
- +
- + _execname(path, sizeof(path));
- + ptr = strrchr(path, '.');
- + strcpy(ptr, ".cfg");
- +
- + if ((cfg = fopen(path, "r")) != NULL)
- + {
- + while (fgets(buffer, sizeof(buffer), cfg) != NULL)
- + {
- + ptr = strtok(buffer, " \t\n");
- + value = strtok(NULL, " \t\n");
- +
- + if (stricmp(ptr, "ConfigDir") == 0)
- + strcpy(ConfigDir, value);
- + else if (stricmp(ptr, "ConfigFile") == 0)
- + strcpy(ConfigFile, value);
- + else if (stricmp(ptr, "DigitDir") == 0)
- + strcpy(DigitDir, value);
- + else if (stricmp(ptr, "DataDir") == 0)
- + strcpy(DataDir, value);
- + else if (stricmp(ptr, "LogDir") == 0)
- + strcpy(LogDir, value);
- + else if (stricmp(ptr, "LogFile") == 0)
- + strcpy(LogFile, value);
- + }
- +
- + fclose(cfg);
- + }
- + }
- diff -cbr Orig/Makefile WWWCount/Makefile
- *** Orig/Makefile Mon Sep 18 01:46:40 1995
- --- WWWCount/Makefile Wed Dec 13 15:56:04 1995
- ***************
- *** 33,68 ****
- # permission for httpd
- ##
-
- ! CC= gcc
- ! CFLAGS= -O -D__USE_FIXED_PROTOTYPES__ -DACCESS_AUTH\
- ! -DUSE_LOCK -I. -I./combine
-
-
- ! OBJS= main.o utils.o strimage.o
- !
- ! all: libCombine.a Count
- !
- ! #
- ! # make the GIF combining library
- ! #
- ! libCombine.a:
- ! (cd combine; make)
- ! #
- ! Count: $(OBJS)
- ! $(CC) $(CFLAGS) -o Count.cgi $(OBJS) combine/libCombine.a
- !
- ! main.o: main.c
- $(CC) $(CFLAGS) -c main.c
-
- ! utils.o: utils.c
- $(CC) $(CFLAGS) -c utils.c
-
- ! strimage.o: strimage.c
- $(CC) $(CFLAGS) -c strimage.c
-
- ! main.o: count.h config.h
- ! utils.o: count.h config.h
-
- clean:
- ! (cd combine; make clean)
- ! /bin/rm -f *.o Count.cgi core
- --- 33,73 ----
- # permission for httpd
- ##
-
- ! emx:
- ! $(MAKE) all CC="gcc -O -s -Zomf -Zsys -Zstack 512" O=".obj" X=".exe" \
- ! AR="emxomfar cr" RANLIB="emxomfar s" A=".lib" OUT="-o"
- ! emx-debug:
- ! $(MAKE) all CC="gcc -g" O=".o" X=".exe" \
- ! AR="ar cr" RANLIB="ar s" A=".a" OUT="-o"
- ! ibm:
- ! $(MAKE) all CC="icc -Wpro- -Ti -Gm" O=".obj" X=".exe" \
- ! AR="ilib" RANLIB="rem" A=".lib" OUT="-Fe"
- !
- ! CFLAGS = -DACCESS_AUTH -I. -I./combine
- !
- ! OBJS = main$O utils$O strimage$O
- !
- ! all: combine$A count$X
- !
- ! combine$A:
- ! $(MAKE) -C combine CC="$(CC)" O="$O" X="$X" \
- ! AR="$(AR)" RANLIB="$(RANLIB)" A="$A"
-
- + count$X: $(OBJS)
- + $(CC) $(CFLAGS) $(OUT) $@ $(OBJS) combine/combine$A
-
- ! main$O: main.c
- $(CC) $(CFLAGS) -c main.c
-
- ! utils$O: utils.c
- $(CC) $(CFLAGS) -c utils.c
-
- ! strimage$O: strimage.c
- $(CC) $(CFLAGS) -c strimage.c
-
- ! main$O: count.h config.h
- ! utils$O: count.h config.h
-
- clean:
- ! $(MAKE) -C combine clean
- ! rm -f *$O count.exe core
-