remove aledoc

This commit is contained in:
nehalmistry 2004-04-24 00:27:26 +00:00
parent eb196d1e7d
commit 652f8d1ad4
3 changed files with 7 additions and 91 deletions

View file

@ -41,9 +41,7 @@ MODULES = src/action src/ai src/beos src/stratagus src/editor src/game src/libmo
src/missile src/movie src/movie/vp31 src/network src/pathfinder src/sound src/ui src/unit \
src/video etlib
MODULES_TOOLS = tools
MODULES_ALL = $(MODULES) $(MODULES_TOOLS)
MODULES_ALL = $(MODULES)
MISC :=
@ -55,19 +53,14 @@ include $(patsubst %, %/Module.make, $(MODULES))
OBJ := $(patsubst %.c, %.o, $(SRC))
OBJ := $(join $(addsuffix $(OBJDIR)/,$(dir $(OBJ))),$(notdir $(OBJ)))
SRC_TOOLS :=
include $(patsubst %, %/Module.make, $(MODULES_TOOLS))
OBJ_TOOLS := $(patsubst %.c, %.o, $(SRC_TOOLS))
OBJ_TOOLS := $(join $(addsuffix $(OBJDIR)/,$(dir $(OBJ_TOOLS))),$(notdir $(OBJ_TOOLS)))
SRC_ALL = $(SRC) $(SRC_TOOLS)
OBJ_ALL = $(OBJ) $(OBJ_TOOLS)
SRC_ALL = $(SRC)
OBJ_ALL = $(OBJ)
.SUFFIXES: .c .o
.PHONY: make-objdir all-src
all: all-src stratagus$(EXE) tools
all: all-src stratagus$(EXE)
make-objdir:
@for i in $(MODULES); do \
@ -167,7 +160,7 @@ lockver:
for i in $(MODULES_ALL); do $(LOCKVER) Module.make; done
tags:
for i in $(SRC) $(SRC_TOOLS); do \
for i in $(SRC); do \
ctags --c-types=defmpstuvx -a -f tags `pwd`/$$i ; done
depend:
@ -190,15 +183,6 @@ ifeq (.depend,$(wildcard .depend))
include .depend
endif
##############################################################################
# TOOLS
##############################################################################
tools: tools/aledoc$(EXE)
tools/aledoc$(EXE): tools/aledoc.c
$(CC) $(CFLAGS) -o $@ $< $(TOOLLIBS)
##############################################################################
# Distributions
##############################################################################
@ -215,8 +199,7 @@ MISC += Makefile Rules.make.orig \
Rules.make.in configure.in configure \
src/stratagus.rc stratagus.dsw stratagus.dsp \
$(patsubst %, %/Module.make, $(MODULES)) \
$(patsubst %, %/Module.make, $(INCLUDE_DIRS)) \
$(patsubst %, %/Module.make, $(MODULES_TOOLS))
$(patsubst %, %/Module.make, $(INCLUDE_DIRS))
mydate = $(shell date +%y%m%d)
distdir = stratagus-$(mydate)
@ -289,7 +272,6 @@ diff:
@$(RM) $(difffile)
@$(RM) $(DISTLIST)
$(MAKE) -C src RULESFILE=$(RULESFILE) distlist
$(MAKE) -C tools RULESFILE=$(RULESFILE) distlist
echo $(MISC) >>$(DISTLIST)
echo $(DOCS) >>$(DISTLIST)
rcsdiff -u `cat $(DISTLIST)` > $(difffile)
@ -342,7 +324,7 @@ win32distclean:
# INSTALL/UNINSTALL
##############################################################################
install: all install-stratagus install-tools
install: all install-stratagus
install-stratagus:
install -m 755 stratagus $(PREFIX)/bin

View file

@ -1 +0,0 @@
SRC_TOOLS += tools/aledoc.c

View file

@ -1,65 +0,0 @@
//
// (c) Copyright 1999-2001 Lutz Sammer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; only version 2 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
// This programm improves doc++, for better documenting
//
// Moves / / / comments before the line containing it.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#undef main
int main(int argc,char** argv)
{
FILE* fin;
FILE* fout;
fin=stdin;
fout=stdout;
if( argc!=2 ) {
fprintf(stderr,"aledoc: input\n");
exit(-1);
}
fin=fopen(argv[1],"r");
if( !fin ) {
fprintf(stderr,"aledoc: can't open input `%s'\n",argv[1]);
exit(-1);
}
while( !feof(fin) ) {
char line[8192];
char* comment;
fgets(line,sizeof(line),fin);
if( (comment=strrchr(line,'/'))
&& comment-2>line && comment[-1]=='/' && comment[-2]=='/' ) {
comment-=2;
fwrite(comment,strlen(comment),1,fout);
fwrite(line,comment-line,1,fout);
fputs("\n",fout);
} else {
fwrite(line,strlen(line),1,fout);
}
}
return 0;
}