I'm such a lazy bastard. "make dist" will create a tar file for distribution
This commit is contained in:
parent
125a33a407
commit
337838d405
15 changed files with 1854 additions and 4794 deletions
44
Makefile.in
44
Makefile.in
|
@ -1,6 +1,6 @@
|
|||
# Makefile for GeoStats
|
||||
# GeoStats CVS Identification
|
||||
# $Id: Makefile.in,v 1.30 2003/01/06 12:07:25 fishwaldo Exp $
|
||||
# $Id: Makefile.in,v 1.31 2003/01/29 11:36:32 fishwaldo Exp $
|
||||
# makefile originally created by Andy Church.
|
||||
include Makefile.inc
|
||||
|
||||
|
@ -12,10 +12,16 @@ SRCS = dns.c chans.c dotconf.c services.c main.c sock.c conf.c ircd.c timer.c us
|
|||
|
||||
PROGS = neostats cronchk makeconf
|
||||
CONF = neostats.motd
|
||||
DOCS = doc/FAQ doc/USERMAN README BUGS AUTHORS COPYING INSTALL LICENCE NEWS TODO
|
||||
DOCS = doc/FAQ* doc/USERMAN README* BUGS AUTHORS COPYING CREDITS INSTALL* LICENCE NEWS TODO
|
||||
DOCS_PROGS = doc/read-faq doc/read-userman
|
||||
DATA = data/tlds.nfo
|
||||
INCLUDES = config.h dl.h dotconf.h hash.h list.h stats.h Ultimate.h Unreal.h adns/adns.h hybrid7.h neoircd.h
|
||||
BUILDFILES = configure *.in adns/Makefile adns/config.h.in dl/Makefile dl/modules.txt RelNotes.txt
|
||||
DISTFILES = $(INCLUDES) $(SRCS) $(DATA) $(DOCS) $(DOCS_PROGS) $(CONF) $(BUILDFILES) adns/*.c adns/adns.h adns/dlist.h adns/internal.h adns/tvarith.h
|
||||
|
||||
distdir = @PACKAGE@-@VERSION@
|
||||
SUBDIRS = doc data adns
|
||||
DISTMOD = cs extauth hostserv loveserv ms spam statserv version
|
||||
|
||||
.c.o:
|
||||
$(CC) $(NEOINCLUDES) $(CFLAGS) -c $<
|
||||
|
@ -54,6 +60,40 @@ install: neostats modules
|
|||
$(INSTALL) -m 644 $(INCLUDES) @prefix@/include
|
||||
(cd dl; $(MAKE) $@)
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@echo -n "Creating Directories"
|
||||
@-rm -rf $(distdir)
|
||||
@echo -n "."
|
||||
@mkdir $(distdir)
|
||||
@echo -n "."
|
||||
@mkdir $(distdir)/dl
|
||||
@echo -n "."
|
||||
@for subdir in $(SUBDIRS); do \
|
||||
echo -n "."; \
|
||||
mkdir $(distdir)/$$subdir; \
|
||||
chmod 777 $(distdir)/$$subdir; \
|
||||
done
|
||||
@echo "Done"
|
||||
@echo -n "Coping Core Distribution files"
|
||||
@for file in $(DISTFILES); do \
|
||||
echo -n "."; \
|
||||
cp -pr $$file $(distdir)/$$file; \
|
||||
done
|
||||
@rm -rf $(distdir)/config.h
|
||||
@echo "Done"
|
||||
@echo "Copying Module Distribution files"
|
||||
@for mod in $(DISTMOD); do \
|
||||
mkdir $(distdir)/dl/$$mod; \
|
||||
(cd dl/$$mod && $(MAKE) dist distdir=../../$(distdir)/dl/$$mod && cd ../..) || exit 1; \
|
||||
done
|
||||
@echo "Done"
|
||||
@tar -czf $(distdir).tar.gz $(distdir)/*
|
||||
@rm -rf $(distdir)
|
||||
@echo "Tar file $(distdir).tar.gz created. Freshmeat time!"
|
||||
|
||||
|
||||
|
||||
|
||||
# Catch any changes in compilation options at the top of this file
|
||||
$(OBJS): Makefile
|
||||
|
||||
|
|
3
Unreal.c
3
Unreal.c
|
@ -20,7 +20,7 @@
|
|||
** USA
|
||||
**
|
||||
** NeoStats CVS Identification
|
||||
** $Id: Unreal.c,v 1.33 2003/01/15 14:18:47 fishwaldo Exp $
|
||||
** $Id: Unreal.c,v 1.34 2003/01/29 11:36:32 fishwaldo Exp $
|
||||
*/
|
||||
|
||||
#include "stats.h"
|
||||
|
@ -307,7 +307,6 @@ int ssvskill_cmd(const char *target, const char *reason, ...) {
|
|||
AddStringToList(&av, u->nick, &ac);
|
||||
Module_Event("KILL", av, ac);
|
||||
free(av);
|
||||
\\ FreeList(av, ac);
|
||||
DelUser(target);
|
||||
va_end(ap);
|
||||
return 1;
|
||||
|
|
|
@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
|||
AC_INIT(dl.c)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
PACKAGE=NeoStats
|
||||
VERSION=2.5.0-RC3
|
||||
VERSION=2.5.0-RC3-Pre1
|
||||
AC_PREFIX_DEFAULT(~/NeoStats)
|
||||
CFLAGS="$CFLAGS -O2"
|
||||
|
||||
|
@ -258,6 +258,8 @@ AC_SUBST(MODULES)
|
|||
AC_SUBST(LIBS)
|
||||
AC_SUBST(EXTAUTH_SRC)
|
||||
AC_SUBST(EXTAUTH_OBJS)
|
||||
AC_SUBST(PACKAGE)
|
||||
AC_SUBST(VERSION)
|
||||
AC_CONFIG_HEADER(adns/config.h)
|
||||
AC_OUTPUT(Makefile.inc Makefile adns/config.h)
|
||||
echo "(*----------------------------------------------------------*)"
|
||||
|
|
|
@ -4,6 +4,8 @@ Generic Top Level Domain (com)
|
|||
Generic Top Level Domain (org)
|
||||
Generic Top Level Domain (edu)
|
||||
Generic Top Level Domain (gov)
|
||||
.info Top Level Domain (info)
|
||||
.biz Top Level Domain (biz)
|
||||
Afghanistan (af)
|
||||
Albania (al)
|
||||
Algeria (dz)
|
||||
|
|
|
@ -5,6 +5,7 @@ INCLUDES = -I../.. -I../../adns
|
|||
SOURCES= cs.c
|
||||
OBJECTS= cs.o
|
||||
TARGET= cs.so
|
||||
DISTFILES = $(SOURCES) cs.h Makefile ChangeLog
|
||||
|
||||
all: cs
|
||||
|
||||
|
@ -22,6 +23,10 @@ clean:
|
|||
install: cs
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@ INCLUDES = -I../.. -I../../adns
|
|||
SOURCES= $(extauth_src)
|
||||
OBJECTS= $(extauth_objs)
|
||||
TARGET= extauth.so
|
||||
DISTFILES = serviceroots.c Makefile
|
||||
|
||||
|
||||
all: extauth
|
||||
|
||||
|
@ -22,6 +24,10 @@ clean:
|
|||
install: extauth
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ INCLUDES = -I../.. -I../../adns
|
|||
SOURCES= hostserv.c
|
||||
OBJECTS= hostserv.o
|
||||
TARGET= hostserv.so
|
||||
DISTFILES = $(SOURCES) hs_help.c Makefile README ChangeLog
|
||||
|
||||
all: hostserv
|
||||
|
||||
|
@ -23,6 +24,10 @@ clean:
|
|||
install: hostserv
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ INCLUDES = -I../.. -I../../adns
|
|||
SOURCES= loveserv.c
|
||||
OBJECTS= loveserv.o
|
||||
TARGET= loveserv.so
|
||||
DISTFILES = $(SOURCES) ls_help.c Makefile ChangeLog
|
||||
|
||||
all: loveserv
|
||||
|
||||
|
@ -22,6 +23,10 @@ clean:
|
|||
install: loveserv
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ INCLUDES = -I../.. -I../../adns
|
|||
SOURCES= ms.c
|
||||
OBJECTS= ms.o
|
||||
TARGET= ms.so
|
||||
|
||||
DISTFILES = $(SOURCES) Makefile ChangeLog ms_help.c
|
||||
all: ms
|
||||
|
||||
.c.o:
|
||||
|
@ -22,6 +22,10 @@ clean:
|
|||
install: ms
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ INCLUDES = -I../.. -I../../adns
|
|||
SOURCES= spam.c
|
||||
OBJECTS= spam.o
|
||||
TARGET= spam.so
|
||||
DISTFILES= $(SOURCES) Makefile
|
||||
|
||||
all: spam
|
||||
|
||||
|
@ -22,6 +23,10 @@ clean:
|
|||
install: spam
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ SOURCES= statserv.c ss_help.c database.c tld.c stats.c htmlstats.c
|
|||
OBJECTS= statserv.o ss_help.o database.o tld.o stats.o htmlstats.o
|
||||
TARGET= statserv.so
|
||||
HTML= html/index.tpl
|
||||
DISTFILES= $(SOURCES) $(HTML) ChangeLog statserv.h m_stats.h Makefile
|
||||
|
||||
all: statserv
|
||||
|
||||
|
@ -24,6 +25,12 @@ install: statserv
|
|||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
$(INSTALL) -m 644 $(HTML) $(DIRECTORY)/data
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@mkdir $(distdir)/html
|
||||
@chmod 777 $(distdir)/html
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
$(OBJECTS): Makefile
|
||||
|
|
|
@ -124,7 +124,7 @@ struct daily_ {
|
|||
|
||||
struct tld_ {
|
||||
TLD *next;
|
||||
char tld[4];
|
||||
char tld[5];
|
||||
char *country;
|
||||
int users;
|
||||
int daily_users;
|
||||
|
|
|
@ -5,6 +5,7 @@ INCLUDES = -I../.. -I../../adns
|
|||
SOURCES= version.c
|
||||
OBJECTS= version.o
|
||||
TARGET= version.so
|
||||
DISTFILES= $(SOURCES) Makefile
|
||||
|
||||
all: version
|
||||
|
||||
|
@ -22,6 +23,10 @@ clean:
|
|||
install: version
|
||||
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
|
||||
|
||||
dist: $(DISTFILES)
|
||||
@for files in $(DISTFILES); do \
|
||||
cp $$files $(distdir)/$$files; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
/*
|
||||
** NeoStats CVS Identification
|
||||
** $Id: dotconf.c,v 1.6 2002/10/15 19:05:38 shmad Exp $
|
||||
** $Id: dotconf.c,v 1.7 2003/01/29 11:36:38 fishwaldo Exp $
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
|
@ -368,6 +368,9 @@ int config_parse(FILE *config)
|
|||
}
|
||||
case ARG_RAW: /* this has been handled before */
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue