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
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
nexedi
MariaDB
Commits
3d03f0ae
Commit
3d03f0ae
authored
Mar 30, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into neptunus.(none):/home/msvensson/mysql/mysql-4.1
parents
c1338937
cc3cadb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
15 deletions
+31
-15
Build-tools/Bootstrap
Build-tools/Bootstrap
+28
-14
support-files/mysql.server.sh
support-files/mysql.server.sh
+3
-1
No files found.
Build-tools/Bootstrap
View file @
3d03f0ae
...
@@ -240,40 +240,52 @@ if (defined $opt_changelog)
...
@@ -240,40 +240,52 @@ if (defined $opt_changelog)
# the last tagged ChangeSet (this relies heavily on our current tagging
# the last tagged ChangeSet (this relies heavily on our current tagging
# practice!)
# practice!)
#
#
my
$revision
=
"";
$opt_changelog
=~
s/^=//
;
# Sometimes, a leading '=' was not stripped.
my
$log_base
=
$opt_changelog
;
my
$changelogfile
;
if
(
$target_dir
=~
m:^/:
)
# we need an absolute path, as we change directory
{
$changelogfile
=
$target_dir
.
"
/ChangeLog
";
}
else
{
$changelogfile
=
cwd
()
.
"
/
"
.
$target_dir
.
"
/ChangeLog
";
}
if
(
$opt_changelog
eq
"
last
")
if
(
$opt_changelog
eq
"
last
")
{
{
if
(
!
$opt_revision
)
if
(
!
$opt_revision
)
{
{
$
revision
=
`
bk changes -t -d':REV:::TAG:' -n
$REPO
| grep mysql-
$major
.
$minor
| head -1 | cut -f1 -d ":"
`;
$
log_base
=
`
bk changes -t -d':REV:::TAG:' -n
$REPO
| grep mysql-
$major
.
$minor
| head -1 | cut -f1 -d ":"
`;
}
}
else
else
{
{
$
revision
=
`
bk changes -r..
$opt_revision
-t -d':REV:' -n
$REPO
| head -2 | tail -1
`;
$
log_base
=
`
bk changes -r..
$opt_revision
-t -d':REV:' -n
$REPO
| head -2 | tail -1
`;
}
}
chomp
(
$revision
);
chomp
(
$log_base
);
$opt_changelog
=
$revision
;
}
}
$msg
=
"
Adding
$
target_dir
/ChangeLog
";
$msg
=
"
Adding
$
changelogfile
";
$msg
.=
"
(down to revision
$
opt_changelog
)
"
if
$opt_changelog
ne
"";
$msg
.=
"
(down to revision
$
log_base
)
"
if
$log_base
ne
"";
&
logger
(
$msg
);
&
logger
(
$msg
);
$command
=
"
bk changes -v
";
# Due to a BK error, "bk changes" must be run in $REPO !
$command
.=
"
-r
"
if
(
$opt_changelog
ne
""
||
$opt_revision
);
$command
=
"
cd
$REPO
;
";
$command
.=
$opt_changelog
if
$opt_changelog
ne
"";
$command
.=
"
bk changes -v
";
$command
.=
"
..
"
if
(
$opt_changelog
ne
""
&&
!
$opt_revision
);
$command
.=
"
-r
"
if
(
$log_base
ne
""
||
$opt_revision
);
$command
.=
$log_base
if
$log_base
ne
"";
$command
.=
"
..
"
if
(
$log_base
ne
""
&&
!
$opt_revision
);
$command
.=
"
..
"
.
$opt_revision
if
$opt_revision
;
$command
.=
"
..
"
.
$opt_revision
if
$opt_revision
;
$command
.=
"
"
.
$REPO
.
"
>
$target_dir
/ChangeLog
";
$command
.=
"
>
$changelogfile
";
&
logger
(
$command
);
&
logger
(
$command
);
# We cannot use run_command here because of output redirection
# We cannot use run_command here because of output redirection
unless
(
$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
$
changelogfile
!
");
}
}
}
}
#
#
# Add the latest manual from the mysqldoc tree
# Add the latest manual
and tool
from the mysqldoc tree
#
#
unless
(
$opt_skip_manual
)
unless
(
$opt_skip_manual
)
{
{
...
@@ -283,6 +295,8 @@ unless ($opt_skip_manual)
...
@@ -283,6 +295,8 @@ unless ($opt_skip_manual)
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/!
");
}
}
&
run_command
("
cp
$opt_docdir
/Docs/Support/texi2html
$target_dir
/Docs/Support
",
"
Could not copy
$opt_docdir
/Docs/Support/texi2html!
");
&
run_command
("
rm -f
$target_dir
/Docs/Images/Makefile*
",
&
run_command
("
rm -f
$target_dir
/Docs/Images/Makefile*
",
"
Could not remove Makefiles in
$target_dir
/Docs/Images/!
");
"
Could not remove Makefiles in
$target_dir
/Docs/Images/!
");
...
...
support-files/mysql.server.sh
View file @
3d03f0ae
...
@@ -87,10 +87,12 @@ parse_arguments() {
...
@@ -87,10 +87,12 @@ parse_arguments() {
}
}
wait_for_pid
()
{
wait_for_pid
()
{
for
((
i
=
0
;
i<35
;
i++
))
;
do
i
=
0
while
test
$i
-lt
35
;
do
sleep
1
sleep
1
test
-s
$pid_file
&&
i
=
''
&&
break
test
-s
$pid_file
&&
i
=
''
&&
break
echo
$echo_n
".
$echo_c
"
echo
$echo_n
".
$echo_c
"
i
=
`
expr
$i
+ 1
`
done
done
if
test
-z
"
$i
"
;
then
if
test
-z
"
$i
"
;
then
...
...
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