File tree 3 files changed +24
-6
lines changed
3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.7 2002/11/01 22:52:33 tgl Exp $
1
+ # $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.8 2003/01/31 20:58:00 tgl Exp $
2
2
3
3
subdir = contrib/cube
4
4
top_builddir = ../..
@@ -17,11 +17,17 @@ cubeparse.o: cubescan.c
17
17
18
18
cubeparse.c : cubeparse.h ;
19
19
20
+ # The sed hack is so that we can get the same error messages with
21
+ # bison 1.875 and later as we did with earlier bisons. Eventually,
22
+ # I suppose, we should re-standardize on "syntax error" --- in which
23
+ # case flip the sed translation, but don't remove it.
24
+
20
25
cubeparse.h : cubeparse.y
21
26
ifdef YACC
22
27
$(YACC) -d $(YFLAGS) -p cube_yy $<
23
- mv -f y.tab.c cubeparse.c
28
+ sed -e 's/"syntax error/"parse error/' < y.tab.c > cubeparse.c
24
29
mv -f y.tab.h cubeparse.h
30
+ rm -f y.tab.c
25
31
else
26
32
@$(missing) bison $< $@
27
33
endif
Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.7 2002/11/01 22:52:33 tgl Exp $
1
+ # $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.8 2003/01/31 20:58:00 tgl Exp $
2
2
3
3
subdir = contrib/seg
4
4
top_builddir = ../..
@@ -16,11 +16,17 @@ segparse.o: segscan.c
16
16
17
17
segparse.c : segparse.h ;
18
18
19
+ # The sed hack is so that we can get the same error messages with
20
+ # bison 1.875 and later as we did with earlier bisons. Eventually,
21
+ # I suppose, we should re-standardize on "syntax error" --- in which
22
+ # case flip the sed translation, but don't remove it.
23
+
19
24
segparse.h : segparse.y
20
25
ifdef YACC
21
26
$(YACC) -d $(YFLAGS) -p seg_yy $<
22
- mv -f y.tab.c segparse.c
27
+ sed -e 's/"syntax error/"parse error/' < y.tab.c > segparse.c
23
28
mv -f y.tab.h segparse.h
29
+ rm -f y.tab.c
24
30
else
25
31
@$(missing) bison $< $@
26
32
endif
Original file line number Diff line number Diff line change 2
2
#
3
3
# Makefile for parser
4
4
#
5
- # $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.38 2002/11/01 22:52:33 tgl Exp $
5
+ # $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.39 2003/01/31 20:58:00 tgl Exp $
6
6
#
7
7
# -------------------------------------------------------------------------
8
8
@@ -38,11 +38,17 @@ gram.o: $(srcdir)/scan.c
38
38
39
39
$(srcdir ) /gram.c : $(srcdir ) /parse.h ;
40
40
41
+ # The sed hack is so that we can get the same error messages with
42
+ # bison 1.875 and later as we did with earlier bisons. Eventually,
43
+ # I suppose, we should re-standardize on "syntax error" --- in which
44
+ # case flip the sed translation, but don't remove it.
45
+
41
46
$(srcdir ) /parse.h : gram.y
42
47
ifdef YACC
43
48
$(YACC) -d $(YFLAGS) $<
44
- mv -f y.tab.c $(srcdir)/gram.c
49
+ sed -e 's/"syntax error/"parse error/' < y.tab.c > $(srcdir)/gram.c
45
50
mv -f y.tab.h $(srcdir)/parse.h
51
+ rm -f y.tab.c
46
52
else
47
53
@$(missing) bison $< $@
48
54
endif
You can’t perform that action at this time.
0 commit comments