Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
24af30e9
Commit
24af30e9
authored
Dec 31, 2004
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Bootrap now uses "compile-dist" by default to create the source distribution
parent
2600fb3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
21 deletions
+69
-21
BUILD/compile-dist
BUILD/compile-dist
+46
-0
Build-tools/Bootstrap
Build-tools/Bootstrap
+23
-21
No files found.
BUILD/compile-dist
0 → 100755
View file @
24af30e9
#!/bin/sh
#
# This script's purpose is to update the automake/autoconf helper scripts and
# to run a plain "configure" without any special compile flags. Only features
# that affect the content of the source distribution are enabled. The resulting
# tree can then be picked up by "make dist" to create the "pristine source
# package" that is used as the basis for all other binary builds.
#
make distclean
aclocal
autoheader
libtoolize
--automake
--force
--copy
automake
--force
--add-missing
--copy
autoconf
(
cd
bdb/dist
&&
sh s_all
)
(
cd
innobase
&&
aclocal
&&
autoheader
&&
aclocal
&&
automake
&&
autoconf
)
# Default to gcc for CC and CXX
if
test
-z
"
$CXX
"
;
then
export
CXX
=
gcc
fi
if
test
-z
"
$CC
"
;
then
export
CC
=
gcc
fi
# Use ccache, if available
if
ccache
-V
>
/dev/null 2>&1
then
if
!
(
echo
"
$CC
"
|
grep
"ccache"
>
/dev/null
)
then
export
CC
=
"ccache
$CC
"
fi
if
!
(
echo
"
$CXX
"
|
grep
"ccache"
>
/dev/null
)
then
export
CXX
=
"ccache
$CXX
"
fi
fi
# Make sure to enable all features that affect "make dist"
./configure
\
--with-embedded-server
\
--with-berkeley-db
\
--with-innodb
\
--enable-thread-safe-client
make
Build-tools/Bootstrap
View file @
24af30e9
...
@@ -26,7 +26,7 @@ else
...
@@ -26,7 +26,7 @@ else
}
}
# Some predefined settings
# Some predefined settings
$build_command
=
"
BUILD/compile-
pentium-max
";
$build_command
=
"
BUILD/compile-
dist
";
$PWD
=
cwd
();
$PWD
=
cwd
();
$opt_docdir
=
$PWD
.
"
/mysqldoc
";
$opt_docdir
=
$PWD
.
"
/mysqldoc
";
$opt_archive_log
=
undef
;
$opt_archive_log
=
undef
;
...
@@ -70,7 +70,7 @@ GetOptions(
...
@@ -70,7 +70,7 @@ GetOptions(
"
test|t
",
"
test|t
",
"
verbose|v
",
"
verbose|v
",
"
win-dist|w
",
"
win-dist|w
",
"
quiet|q
",
"
quiet|q
",
)
||
print_help
("");
)
||
print_help
("");
#
#
...
@@ -122,18 +122,8 @@ if (($opt_directory ne $PWD) && (!-d $opt_directory && !$opt_dry_run))
...
@@ -122,18 +122,8 @@ if (($opt_directory ne $PWD) && (!-d $opt_directory && !$opt_dry_run))
#
#
if
(
$opt_pull
)
if
(
$opt_pull
)
{
{
&
logger
("
Updating BK tree
$REPO
to latest ChangeSet first
");
&
bk_pull
("
$REPO
");
chdir
(
$REPO
)
or
&
abort
("
Could not chdir to
$REPO
!
");
&
bk_pull
("
$opt_docdir
")
unless
(
$opt_skip_manual
);
&
run_command
("
bk pull
",
"
Could not update
$REPO
!
");
chdir
(
$PWD
)
or
&
abort
("
Could not chdir to
$PWD
!
");
unless
(
$opt_skip_manual
)
{
&
logger
("
Updating manual tree in
$opt_docdir
");
chdir
(
$opt_docdir
)
or
&
abort
("
Could not chdir to
$opt_docdir
!
");
&
run_command
("
bk pull
",
"
Could not update
$opt_docdir
!
");
chdir
(
$PWD
)
or
&
abort
("
Could not chdir to
$PWD
!
");
}
}
}
#
#
...
@@ -270,7 +260,7 @@ if (defined $opt_changelog)
...
@@ -270,7 +260,7 @@ if (defined $opt_changelog)
$command
.=
"
"
.
$REPO
.
"
>
$target_dir
/ChangeLog
";
$command
.=
"
"
.
$REPO
.
"
>
$target_dir
/ChangeLog
";
&
logger
(
$command
);
&
logger
(
$command
);
# We cannot use run_command here because of output redirection
# We cannot use run_command here because of output redirection
if
(
!
$opt_dry_run
)
unless
(
$opt_dry_run
)
{
{
system
(
$command
)
==
0
or
&
abort
("
Could not create
$target_dir
/ChangeLog!
");
system
(
$command
)
==
0
or
&
abort
("
Could not create
$target_dir
/ChangeLog!
");
}
}
...
@@ -281,17 +271,17 @@ if (defined $opt_changelog)
...
@@ -281,17 +271,17 @@ if (defined $opt_changelog)
#
#
unless
(
$opt_skip_manual
)
unless
(
$opt_skip_manual
)
{
{
$msg
=
"
Updating manual files
";
&
logger
("
Updating manual files
");
&
logger
(
$msg
);
foreach
$file
qw/internals manual reservedwords/
foreach
$file
qw/internals manual reservedwords/
{
{
system
("
bk cat
$opt_docdir
/Docs/
$file
.texi >
$target_dir
/Docs/
$file
.texi
")
==
0
system
("
bk cat
$opt_docdir
/Docs/
$file
.texi >
$target_dir
/Docs/
$file
.texi
")
==
0
or
&
abort
("
Could not update
$file
.texi in
$target_dir
/Docs/!
");
or
&
abort
("
Could not update
$file
.texi in
$target_dir
/Docs/!
");
}
}
system
("
rm -f
$target_dir
/Docs/Images/Makefile*
")
==
0
or
&
abort
("
Could not remove Makefiles in
$target_dir
/Docs/Images/!
");
&
run_command
("
rm -f
$target_dir
/Docs/Images/Makefile*
",
system
("
cp
$opt_docdir
/Docs/Images/*.*
$target_dir
/Docs/Images
")
==
0
"
Could not remove Makefiles in
$target_dir
/Docs/Images/!
");
or
&
abort
("
Could not copy image files in
$target_dir
/Docs/Images/!
");
&
run_command
("
cp
$opt_docdir
/Docs/Images/*.*
$target_dir
/Docs/Images
",
"
Could not copy image files in
$target_dir
/Docs/Images/!
");
}
}
#
#
...
@@ -377,6 +367,18 @@ if ($opt_archive_log)
...
@@ -377,6 +367,18 @@ if ($opt_archive_log)
exit
0
;
exit
0
;
#
# Run a BK pull on the given BK tree
#
sub
bk_pull
{
my
$bk_tree
=
$_
[
0
];
&
logger
("
Updating BK tree
$bk_tree
to latest ChangeSet first
");
chdir
(
$bk_tree
)
or
&
abort
("
Could not chdir to
$bk_tree
!
");
&
run_command
("
bk pull
",
"
Could not update
$bk_tree
!
");
chdir
(
$PWD
)
or
&
abort
("
Could not chdir to
$PWD
!
");
}
#
#
# Print the help text message (with an optional message on top)
# Print the help text message (with an optional message on top)
#
#
...
...
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