Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b78f9b49
Commit
b78f9b49
authored
Nov 14, 2008
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable script to generate preproc.y in build process.
parent
a76e98f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
src/interfaces/ecpg/preproc/.cvsignore
src/interfaces/ecpg/preproc/.cvsignore
+1
-0
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/Makefile
+8
-5
src/tools/msvc/Solution.pm
src/tools/msvc/Solution.pm
+14
-1
No files found.
src/interfaces/ecpg/preproc/.cvsignore
View file @
b78f9b49
preproc.y
preproc.c
preproc.h
pgc.c
src/interfaces/ecpg/preproc/Makefile
View file @
b78f9b49
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1998-2008, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.13
7 2008/10/14 09:31:04
meskes Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.13
8 2008/11/14 17:11:40
meskes Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -38,27 +38,30 @@ preproc.o: $(srcdir)/pgc.c
$(srcdir)/preproc.h
:
$(srcdir)/preproc.c ;
$(srcdir)/preproc.c
:
preproc.y
$(srcdir)/preproc.c
:
$(srcdir)/
preproc.y
ifdef
BISON
$(BISON)
-d
$(BISONFLAGS)
-o
$@
$<
else
@
$(missing)
bison
$<
$@
endif
$(srcdir)/pgc.c
:
pgc.l
$(srcdir)/pgc.c
:
$(srcdir)/
pgc.l
ifdef
FLEX
$(FLEX)
$(FLEXFLAGS)
-o
'$@'
$<
else
@
$(missing)
flex
$<
$@
endif
$(srcdir)/preproc.y
:
$(top_srcdir)/src/backend/parser/gram.y
$(PERL)
$(srcdir)
/parse.pl
$(srcdir)
<
$<
>
$@
ecpg_keywords.o c_keywords.o keywords.o preproc.o parser.o
:
preproc.h
# instead of maintaining our own list, take the one from the backend
keywords.c
:
% : $(top_srcdir)/src/backend/parser/%
rm
-f
$@
&&
$(LN_S)
$<
.
distprep
:
$(srcdir)/preproc.c $(srcdir)/preproc.h $(srcdir)/pgc.c
distprep
:
$(srcdir)/preproc.
y $(srcdir)/preproc.
c $(srcdir)/preproc.h $(srcdir)/pgc.c
install
:
all installdirs
$(INSTALL_PROGRAM)
ecpg
$(X)
'
$(DESTDIR)$(bindir)
'
...
...
@@ -78,4 +81,4 @@ clean distclean:
# want to ship those files in the distribution for people with
# inadequate tools.
maintainer-clean
:
distclean
rm
-f
$(srcdir)
/preproc.c
$(srcdir)
/preproc.h
$(srcdir)
/pgc.c
rm
-f
$(srcdir)
/preproc.
y
$(srcdir)
/preproc.
c
$(srcdir)
/preproc.h
$(srcdir)
/pgc.c
src/tools/msvc/Solution.pm
View file @
b78f9b49
...
...
@@ -3,7 +3,7 @@ package Solution;
#
# Package that encapsulates a Visual C++ solution file generation
#
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.4
4 2008/08/16 12:42:27 mha
Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.4
5 2008/11/14 17:11:40 meskes
Exp $
#
use
Carp
;
use
strict
;
...
...
@@ -237,6 +237,19 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
chdir
('
..
\
..
\
..
');
}
if
(
IsNewer
(
'
src
\
interfaces
\
ecpg
\
preproc
\
preproc.y
',
'
src
\
backend
\
parser
\
gram.y
'
)
)
{
print
"
Generating preproc.y...
\n
";
chdir
('
src
\
interfaces
\
ecpg
\
preproc
');
system
('
perl parse.pl < ..
\
..
\
..
\
backend
\
parser
\
gram.y > preproc.y
');
chdir
('
..
\
..
\
..
\
..
');
}
if
(
IsNewer
(
'
src
\
interfaces
\
ecpg
\
include
\
ecpg_config.h
',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment