Skip to content

Commit 353dd4f

Browse files
author
serg@serg.mylan
committed
dbug: DBUG_EXECUTE_IF macro, build user manual automatically, document all features
charset2html moved from mysys to extra ignore: new files added, garbage removed
1 parent b12dfea commit 353dd4f

File tree

12 files changed

+302
-151
lines changed

12 files changed

+302
-151
lines changed

.bzrignore

+18-82
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.lo
1010
*.o
1111
*.reject
12+
*.so
1213
*.spec
1314
*/*_pure_*warnings
1415
*/.pure
@@ -26,24 +27,18 @@
2627
.out
2728
.snprj/*
2829
.vimrc
29-
50
30-
=6
3130
BUILD/compile-pentium-maintainer
32-
BitKeeper/etc/config
3331
BitKeeper/etc/csets
3432
BitKeeper/etc/csets-in
3533
BitKeeper/etc/csets-out
36-
BitKeeper/etc/gone
3734
BitKeeper/etc/level
3835
BitKeeper/etc/pushed
3936
BitKeeper/post-commit
4037
BitKeeper/post-commit-manual
4138
BitKeeper/tmp/*
42-
BitKeeper/tmp/bkr3sAHD
4339
BitKeeper/tmp/gone
4440
COPYING
4541
COPYING.LIB
46-
Docs/#manual.texi#
4742
Docs/INSTALL-BINARY
4843
Docs/Images/myaccess-odbc.txt
4944
Docs/Images/myaccess.txt
@@ -67,7 +62,6 @@ Docs/internals_toc.html
6762
Docs/manual.aux
6863
Docs/manual.cp
6964
Docs/manual.cps
70-
Docs/manual.de.log
7165
Docs/manual.dvi
7266
Docs/manual.fn
7367
Docs/manual.fns
@@ -76,8 +70,6 @@ Docs/manual.ky
7670
Docs/manual.log
7771
Docs/manual.pdf
7872
Docs/manual.pg
79-
Docs/manual.texi.orig
80-
Docs/manual.texi.rej
8173
Docs/manual.toc
8274
Docs/manual.tp
8375
Docs/manual.txt
@@ -98,17 +90,11 @@ Logs/*
9890
MIRRORS
9991
Makefile
10092
Makefile.in
101-
Makefile.in'
10293
PENDING/*
10394
TAGS
10495
aclocal.m4
105-
autom4te-2.53.cache/output.0
106-
autom4te-2.53.cache/requests
107-
autom4te-2.53.cache/traces.0
96+
autom4te-2.53.cache/*
10897
autom4te.cache/*
109-
autom4te.cache/output.0
110-
autom4te.cache/requests
111-
autom4te.cache/traces.0
11298
bdb/README
11399
bdb/btree/btree_auto.c
114100
bdb/build_unix/*
@@ -153,13 +139,8 @@ bdb/db/crdel_auto.c
153139
bdb/db/db_auto.c
154140
bdb/dbinc_auto/*.*
155141
bdb/dbreg/dbreg_auto.c
156-
bdb/dist/autom4te-2.53.cache/output.0
157-
bdb/dist/autom4te-2.53.cache/requests
158-
bdb/dist/autom4te-2.53.cache/traces.0
142+
bdb/dist/autom4te-2.53.cache/*
159143
bdb/dist/autom4te.cache/*
160-
bdb/dist/autom4te.cache/output.0
161-
bdb/dist/autom4te.cache/requests
162-
bdb/dist/autom4te.cache/traces.0
163144
bdb/dist/config.hin
164145
bdb/dist/configure
165146
bdb/dist/tags
@@ -238,20 +219,13 @@ bdb/test/include.tcl
238219
bdb/test/logtrack.list
239220
bdb/txn/txn_auto.c
240221
binary/*
241-
bkpull.log
242-
bkpull.log.2
243-
bkpull.log.3
244-
bkpull.log.4
245-
bkpull.log.5
246-
bkpull.log.6
247-
bkpush.log
222+
bkpull.log*
223+
bkpush.log*
248224
build.log
249225
build_tags.sh
250226
client/insert_test
251227
client/log_event.cc
252228
client/log_event.h
253-
client/mf_iocache.c
254-
client/mf_iocache.cc
255229
client/mysql
256230
client/mysqladmin
257231
client/mysqlbinlog
@@ -262,11 +236,8 @@ client/mysqlmanager-pwgen
262236
client/mysqlmanagerc
263237
client/mysqlshow
264238
client/mysqltest
265-
client/mysys_priv.h
266239
client/select_test
267240
client/ssl_test
268-
client/thimble
269-
client/thread_test
270241
client_test
271242
cmd-line-utils/libedit/common.h
272243
cmd-line-utils/libedit/makelist
@@ -279,12 +250,20 @@ config.status
279250
configure
280251
configure.lineno
281252
core
282-
core.2430
253+
core.*
283254
db-*.*.*
255+
dbug/dbug_analyze
256+
dbug/example*.r
257+
dbug/factorial
258+
dbug/factorial.r
259+
dbug/main.r
260+
dbug/output*.r
261+
dbug/user.ps
284262
dbug/user.t
285263
depcomp
286264
emacs.h
287265
extra/comp_err
266+
extra/charset2html
288267
extra/my_print_defaults
289268
extra/mysql_install
290269
extra/mysql_tzinfo_to_sql
@@ -296,6 +275,7 @@ extra/resolveip
296275
extra/tztime.cc
297276
fcns.c
298277
fcns.h
278+
gdbinit
299279
gmon.out
300280
hardcopy.0
301281
heap/hp_test1
@@ -309,13 +289,8 @@ include/readline
309289
include/readline/*.h
310290
include/readline/readline.h
311291
include/widec.h
312-
innobase/autom4te-2.53.cache/output.0
313-
innobase/autom4te-2.53.cache/requests
314-
innobase/autom4te-2.53.cache/traces.0
292+
innobase/autom4te-2.53.cache/*
315293
innobase/autom4te.cache/*
316-
innobase/autom4te.cache/output.0
317-
innobase/autom4te.cache/requests
318-
innobase/autom4te.cache/traces.0
319294
innobase/configure.lineno
320295
innobase/conftest.s1
321296
innobase/conftest.subs
@@ -435,6 +410,7 @@ libmysqld/sql_db.cc
435410
libmysqld/sql_delete.cc
436411
libmysqld/sql_derived.cc
437412
libmysqld/sql_do.cc
413+
libmysqld/sql_error.cc
438414
libmysqld/sql_handler.cc
439415
libmysqld/sql_help.cc
440416
libmysqld/sql_insert.cc
@@ -445,6 +421,7 @@ libmysqld/sql_manager.cc
445421
libmysqld/sql_map.cc
446422
libmysqld/sql_olap.cc
447423
libmysqld/sql_parse.cc
424+
libmysqld/sql_prepare.cc
448425
libmysqld/sql_rename.cc
449426
libmysqld/sql_repl.cc
450427
libmysqld/sql_select.cc
@@ -479,15 +456,6 @@ linked_server_sources
479456
linked_tools_sources
480457
locked
481458
man/*.1
482-
mit-pthreads/config.flags
483-
mit-pthreads/include/bits
484-
mit-pthreads/include/pthread/machdep.h
485-
mit-pthreads/include/pthread/posix.h
486-
mit-pthreads/include/sys
487-
mit-pthreads/machdep.c
488-
mit-pthreads/pg++
489-
mit-pthreads/pgcc
490-
mit-pthreads/syscall.S
491459
myisam/FT1.MYD
492460
myisam/FT1.MYI
493461
myisam/ft_dump
@@ -513,9 +481,6 @@ myisam/test1.MYD
513481
myisam/test1.MYI
514482
myisam/test2.MYD
515483
myisam/test2.MYI
516-
mysql-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
517-
mysql-4.0.2-alpha.tar.gz
518-
mysql-max-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
519484
mysql-test/gmon.out
520485
mysql-test/install_test_db
521486
mysql-test/mysql-test-run
@@ -539,12 +504,6 @@ mysql.proj
539504
mysql_priv.h
540505
mysqld.S
541506
mysqld.sym
542-
mysys/#mf_iocache.c#
543-
mysys/charset2html
544-
mysys/getopt.c
545-
mysys/getopt1.c
546-
mysys/main.cc
547-
mysys/ste5KbMa
548507
mysys/test_charset
549508
mysys/test_dir
550509
mysys/test_gethwaddr
@@ -667,14 +626,6 @@ ndb/examples/ndbapi_example2/ndbapi_example2
667626
ndb/examples/ndbapi_example3/ndbapi_example3
668627
ndb/examples/ndbapi_example5/ndbapi_example5
669628
ndb/examples/select_all/select_all
670-
ndb/lib/libMGM_API.so
671-
ndb/lib/libNDB_API.so
672-
ndb/lib/libNDB_ODBC.so
673-
ndb/lib/libNEWTON_API.so
674-
ndb/lib/libNEWTON_BASICTEST_COMMON.so
675-
ndb/lib/libREP_API.so
676-
ndb/lib/libndbclient.so
677-
ndb/lib/libndbclient_extra.so
678629
ndb/src/common/mgmcommon/printConfig/*.d
679630
ndb/src/cw/cpcd/ndb_cpcd
680631
ndb/src/kernel/blocks/backup/restore/ndb_restore
@@ -806,7 +757,6 @@ sql-bench/test-insert
806757
sql-bench/test-select
807758
sql-bench/test-transactions
808759
sql-bench/test-wisconsin
809-
sql/.gdbinit
810760
sql/client.c
811761
sql/gen_lex_hash
812762
sql/gmon.out
@@ -821,24 +771,12 @@ sql/mysqld
821771
sql/mysqld-purecov
822772
sql/mysqld-purify
823773
sql/mysqld-quantify
824-
sql/new.cc
825774
sql/pack.c
826-
sql/safe_to_cache_query.txt
827775
sql/share/*.sys
828-
sql/share/charsets/gmon.out
829-
sql/share/gmon.out
830-
sql/share/mysql
831-
sql/share/norwegian-ny/errmsg.sys
832-
sql/share/norwegian/errmsg.sys
833-
sql/sql_select.cc.orig
834776
sql/sql_yacc.cc
835777
sql/sql_yacc.h
836778
sql/sql_yacc.output
837-
sql/sql_yacc.yy.orig
838779
sql/test_time
839-
sql/udf_example.so
840-
sql_error.cc
841-
sql_prepare.cc
842780
stamp-h
843781
stamp-h.in
844782
stamp-h1
@@ -930,10 +868,8 @@ tests/client_test
930868
tests/connect_test
931869
thread_test
932870
tmp/*
933-
tools/my_vsnprintf.c
934871
tools/mysqlmanager
935872
tools/mysqlmngd
936-
tools/mysys_priv.h
937873
vi.h
938874
vio/test-ssl
939875
vio/test-sslclient

configure.in

+1-3
Original file line numberDiff line numberDiff line change
@@ -2861,12 +2861,10 @@ then
28612861
AC_DEFINE([THREAD], [1],
28622862
[Define if you want to have threaded code. This may be undef on client code])
28632863
# Avoid _PROGRAMS names
2864-
THREAD_LPROGRAMS="test_thr_alarm\$(EXEEXT) test_thr_lock\$(EXEEXT)"
2865-
AC_SUBST(THREAD_LPROGRAMS)
28662864
THREAD_LOBJECTS="thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o"
28672865
AC_SUBST(THREAD_LOBJECTS)
28682866
server_scripts="mysqld_safe mysql_install_db"
2869-
sql_server_dirs="strings dbug mysys extra regex"
2867+
sql_server_dirs="strings mysys dbug extra regex"
28702868

28712869

28722870
#

dbug/Makefile.am

+36-27
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,52 @@
1515
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
1616
# MA 02111-1307, USA
1717

18-
INCLUDES = @MT_INCLUDES@ -I$(top_srcdir)/include
19-
LDADD = libdbug.a ../strings/libmystrings.a
20-
pkglib_LIBRARIES = libdbug.a
21-
noinst_HEADERS = dbug_long.h
22-
libdbug_a_SOURCES = dbug.c sanity.c
23-
EXTRA_DIST = example1.c example2.c example3.c \
24-
user.r monty.doc readme.prof \
25-
main.c factorial.c dbug_analyze.c
18+
INCLUDES = @MT_INCLUDES@ -I$(top_srcdir)/include
19+
LDADD = libdbug.a ../mysys/libmysys.a ../strings/libmystrings.a
20+
pkglib_LIBRARIES = libdbug.a
21+
noinst_HEADERS = dbug_long.h
22+
libdbug_a_SOURCES = dbug.c sanity.c
23+
EXTRA_DIST = example1.c example2.c example3.c \
24+
user.r monty.doc readme.prof dbug_add_tags.pl \
25+
main.c factorial.c dbug_analyze.c
26+
NROFF_INC = example1.r example2.r example3.r main.r \
27+
factorial.r output1.r output2.r output3.r \
28+
output4.r output5.r
29+
2630

2731
# Must be linked with libs that are not compiled yet
28-
extra_progs: factorial dbug_analyze
32+
noinst_PROGRAMS = factorial dbug_analyze
33+
factorial_SOURCES = main.c factorial.c
34+
dbug_analyze_SOURCES = dbug_analyze.c
35+
36+
all: user.t user.ps
2937

30-
factorial: main.o factorial.o
31-
@rm -f factorial
32-
$(LINK) main.o factorial.o -lmysys
38+
user.t: user.r $(NROFF_INC)
39+
nroff -mm user.r > $@
3340

34-
dbug_analyze: dbug_analyze.o
35-
@rm -f dbug_analyze
36-
$(LINK) dbug_analyze.o -lmysys
41+
user.ps: user.r $(NROFF_INC)
42+
groff -mm user.r > $@
3743

38-
user.t: user.r $(NROFF_INC)
39-
nroff -cm user.r > $@
44+
output1.r: factorial
45+
./factorial 1 2 3 4 5 | cat > $@
4046

41-
output1.r: $(PROGRAM)
42-
factorial 1 2 3 4 5 | cat > $@
47+
output2.r: factorial
48+
./factorial -\#t:o 2 3 | cat >$@
4349

44-
output2.r: $(PROGRAM)
45-
factorial -\#t:o 2 3 | cat >$@
50+
output3.r: factorial
51+
./factorial -\#d:t:o 3 | cat >$@
4652

47-
output3.r: $(PROGRAM)
48-
factorial -\#d:t:o 3 | cat >$@
53+
output4.r: factorial
54+
./factorial -\#d,result:o 4 | cat >$@
4955

50-
output4.r: $(PROGRAM)
51-
factorial -\#d,result:o 4 | cat >$@
56+
output5.r: factorial
57+
./factorial -\#d:f,factorial:F:L:o 3 | cat >$@
58+
.c.r:
59+
@RM@ -f $@
60+
@SED@ -e 's!\\!\\\\!g' $< > $@
5261

53-
output5.r: $(PROGRAM)
54-
factorial -\#d:f,factorial:F:L:o 3 | cat >$@
62+
clean:
63+
@RM@ -f $(NROFF_INC) user.t user.ps
5564

5665
# Don't update the files from bitkeeper
5766
%::SCCS/s.%

0 commit comments

Comments
 (0)