Remove vergen.c completely

This commit is contained in:
k-hara 2013-01-30 11:42:32 +09:00
parent 87f22b121a
commit 53c7f80275
4 changed files with 6 additions and 26 deletions

2
.gitignore vendored
View file

@ -20,8 +20,6 @@ src/dmd.exe
src/impcnvgen.exe
src/optabgen.exe
src/verstr.h
src/vergen.exe
src/vergen
*.map
.DS_Store
trace.def

View file

@ -134,7 +134,7 @@ SRC = win32.mak posix.mak \
libmscoff.c \
aliasthis.h aliasthis.c json.h json.c unittests.c imphint.c \
argtypes.c apply.c sideeffect.c \
intrange.h intrange.c canthrow.c vergen.c \
intrange.h intrange.c canthrow.c \
scanmscoff.c ctfe.h ctfeexpr.c \
$C/cdef.h $C/cc.h $C/oper.h $C/ty.h $C/optabgen.c \
$C/global.h $C/code.h $C/type.h $C/dt.h $C/cgcv.h \
@ -177,7 +177,7 @@ dmd: $(DMD_OBJS)
clean:
rm -f $(DMD_OBJS) dmd optab.o id.o impcnvgen idgen id.c id.h \
impcnvtab.c optabgen debtab.c optab.c cdxxx.c elxxx.c fltables.c \
tytab.c vergen verstr.h core \
tytab.c verstr.h core \
*.cov *.gcda *.gcno
######## optabgen generates some source
@ -207,11 +207,10 @@ impcnvgen : mtype.h impcnvgen.c
$(ENVP) $(CC) $(CFLAGS) impcnvgen.c -o impcnvgen
./impcnvgen
######### vergen generates some source
#########
verstr.h : vergen.c ../VERSION
$(ENVP) $(CC) vergen.c -o vergen
cat ../VERSION | ./vergen > verstr.h
verstr.h : ../VERSION
echo -n \"`cat ../VERSION`\" > verstr.h
#########

View file

@ -1,17 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
int main() {
int c;
printf("\"", c);
while ((c = fgetc(stdin)) != EOF) {
if (c == '\n') break;
printf("%c", c);
}
printf("\"");
return EXIT_SUCCESS;
}

View file

@ -205,7 +205,7 @@ SRCS= mars.c enum.c struct.c dsymbol.c import.c idgen.c impcnvgen.c utf.h \
clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \
aliasthis.h aliasthis.c json.h json.c unittests.c imphint.c argtypes.c \
apply.c sideeffect.c libmscoff.c scanmscoff.c ctfe.h \
intrange.h intrange.c canthrow.c vergen.c
intrange.h intrange.c canthrow.c
# D back end