Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-04-23 14:01:48+02:00, msvensson@stripped +3 -0
Add "name of struct" as first arg to comp_sql
Fix "make distcheck"
scripts/CMakeLists.txt@stripped, 2007-04-23 14:01:46+02:00, msvensson@stripped +1 -0
Add "name of struct" as first arg to comp_sql
scripts/Makefile.am@stripped, 2007-04-23 14:01:46+02:00, msvensson@stripped +18 -14
Add "name of struct" as first arg to comp_sql
Fix "make distcheck"
scripts/comp_sql.c@stripped, 2007-04-23 14:01:46+02:00, msvensson@stripped +6 -9
Add "name of struct" as first arg to comp_sql
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: pilot.blaudden
# Root: /home/msvensson/mysql/mysql-5.0-maint
--- 1.60/scripts/Makefile.am 2007-04-18 19:34:32 +02:00
+++ 1.61/scripts/Makefile.am 2007-04-23 14:01:46 +02:00
@@ -15,6 +15,11 @@
## Process this file with automake to create Makefile.in
+BUILT_SOURCES = mysql_fix_privilege_tables.sql \
+ mysql_fix_privilege_tables_sql.c
+
+noinst_PROGRAMS = comp_sql
+
bin_SCRIPTS = @server_scripts@ \
msql2mysql \
mysql_config \
@@ -94,7 +99,8 @@ CLEANFILES = @server_scripts@ \
mysql_upgrade_shell \
mysqld_multi \
make_win_src_distribution \
- mysql_fix_privilege_tables.sql
+ mysql_fix_privilege_tables.sql \
+ mysql_fix_privilege_tables_sql.c
# mysqlbug should be distributed built so that people can report build
# failures with it.
@@ -111,6 +117,17 @@ mysql_fix_privilege_tables.sql: mysql_sy
@echo "Building $@";
@cat mysql_system_tables.sql mysql_system_tables_fix.sql > $@
+#
+# Build mysql_fix_privilege_tables_sql.c from
+# mysql_fix_privileges_tables.sql using comp_sql
+#
+mysql_fix_privilege_tables_sql.c: comp_sql.c mysql_fix_privilege_tables.sql
+ $(MAKE) $(AM_MAKEFLAGS) comp_sql$(EXEEXT)
+ $(top_builddir)/scripts/comp_sql$(EXEEXT) \
+ mysql_fix_privilege_tables \
+ $(top_srcdir)/scripts/mysql_fix_privilege_tables.sql $@
+
+
SUFFIXES = .sh
.sh:
@@ -165,19 +182,6 @@ SUFFIXES = .sh
$< > $@-t
@CHMOD@ +x $@-t
@MV@ $@-t $@
-
-
-BUILT_SOURCES = mysql_fix_privilege_tables_sql.c
-noinst_PROGRAMS = comp_sql
-
-#
-# Build mysql_fix_privilege_tables_sql.c from
-# mysql_fix_privileges_tables.sql using comp_sql
-#
-mysql_fix_privilege_tables_sql.c: comp_sql.c mysql_fix_privilege_tables.sql
- $(MAKE) $(AM_MAKEFLAGS) comp_sql$(EXEEXT)
- $(top_builddir)/scripts/comp_sql$(EXEEXT) \
- mysql_fix_privilege_tables.sql $@
# Don't update the files from bitkeeper
--- 1.2/scripts/CMakeLists.txt 2007-04-19 17:00:27 +02:00
+++ 1.3/scripts/CMakeLists.txt 2007-04-23 14:01:46 +02:00
@@ -22,6 +22,7 @@ GET_TARGET_PROPERTY(COMP_SQL_EXE comp_sq
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_SOURCE_DIR}/scripts/mysql_fix_privilege_tables_sql.c
COMMAND ${COMP_SQL_EXE}
+ mysql_fix_privilege_tables
mysql_fix_privilege_tables.sql
mysql_fix_privilege_tables_sql.c
DEPENDS comp_sql ${PROJECT_SOURCE_DIR}/scripts/mysql_fix_privilege_tables.sql)
--- 1.3/scripts/comp_sql.c 2007-04-19 21:30:45 +02:00
+++ 1.4/scripts/comp_sql.c 2007-04-23 14:01:46 +02:00
@@ -58,12 +58,12 @@ static void die(const char *fmt, ...)
int main(int argc, char *argv[])
{
char buff[512];
- char* infile_name= argv[1];
- char* outfile_name= argv[2];
- char* end= infile_name;
+ char* struct_name= argv[1];
+ char* infile_name= argv[2];
+ char* outfile_name= argv[3];
- if (argc != 3)
- die("Usage: comp_sql <sql_filename> <c_filename>");
+ if (argc != 4)
+ die("Usage: comp_sql <struct_name> <sql_filename> <c_filename>");
/* Open input and output file */
if (!(in= fopen(infile_name, "r")))
@@ -71,10 +71,7 @@ int main(int argc, char *argv[])
if (!(out= fopen(outfile_name, "w")))
die("Failed to open output file '%s'", outfile_name);
- while(*end && *end != '.')
- end++;
- *end= 0;
- fprintf(out, "const char* %s={\n\"", infile_name);
+ fprintf(out, "const char* %s={\n\"", struct_name);
while (fgets(buff, sizeof(buff), in))
{
| Thread |
|---|
| • bk commit into 5.0 tree (msvensson:1.2448) | msvensson | 23 Apr |