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
a8e1fa17
Commit
a8e1fa17
authored
May 22, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix file_contents to pass with git
parent
3e48269f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
mysql-test/r/file_contents.result
mysql-test/r/file_contents.result
+1
-1
mysql-test/t/file_contents.test
mysql-test/t/file_contents.test
+8
-7
No files found.
mysql-test/r/file_contents.result
View file @
a8e1fa17
Checking 'INFO_SRC' and 'INFO_BIN'
Checking 'INFO_SRC' and 'INFO_BIN'
INFO_SRC: Found M
ySQL version number / Found BZR
revision id
INFO_SRC: Found M
ariaDB version number / Found
revision id
INFO_BIN: Found 'Compiler ... used' line / Found 'Feature flags' line
INFO_BIN: Found 'Compiler ... used' line / Found 'Feature flags' line
End of tests
End of tests
mysql-test/t/file_contents.test
View file @
a8e1fa17
...
@@ -17,21 +17,21 @@ if ($dir_bin eq '/usr/') {
...
@@ -17,21 +17,21 @@ if ($dir_bin eq '/usr/') {
$dir_docs
=~
s
|/
lib
|/
share
/
doc
|
;
$dir_docs
=~
s
|/
lib
|/
share
/
doc
|
;
if
(
-
d
"
$dir_docs
/packages"
)
{
if
(
-
d
"
$dir_docs
/packages"
)
{
# SuSE: "packages/" in the documentation path
# SuSE: "packages/" in the documentation path
$dir_docs
=
glob
"
$dir_docs
/packages/M
ySQL
-server*"
;
$dir_docs
=
glob
"
$dir_docs
/packages/M
ariaDB
-server*"
;
}
else
{
}
else
{
# RedHat: version number in directory name
# RedHat: version number in directory name
$dir_docs
=
glob
"
$dir_docs
/M
ySQL
-server*"
;
$dir_docs
=
glob
"
$dir_docs
/M
ariaDB
-server*"
;
}
}
}
elsif
(
$dir_bin
eq
'/usr'
)
{
}
elsif
(
$dir_bin
eq
'/usr'
)
{
# RPM build during development
# RPM build during development
$dir_docs
=
"
$dir_bin
/share/doc"
;
$dir_docs
=
"
$dir_bin
/share/doc"
;
if
(
-
d
"
$dir_docs
/packages"
)
{
if
(
-
d
"
$dir_docs
/packages"
)
{
# SuSE: "packages/" in the documentation path
# SuSE: "packages/" in the documentation path
$dir_docs
=
glob
"
$dir_docs
/packages/M
ySQL
-server*"
;
$dir_docs
=
glob
"
$dir_docs
/packages/M
ariaDB
-server*"
;
}
else
{
}
else
{
# RedHat/Debian: version number in directory name
# RedHat/Debian: version number in directory name
$dir_docs
=
glob
"
$dir_docs
/mariadb-server-*"
;
$dir_docs
=
glob
"
$dir_docs
/mariadb-server-*"
;
$dir_docs
=
glob
"
$dir_docs
/M
ySQL
-server*"
unless
-
d
$dir_docs
;
$dir_docs
=
glob
"
$dir_docs
/M
ariaDB
-server*"
unless
-
d
$dir_docs
;
}
}
# Slackware
# Slackware
$dir_docs
=
glob
"
$dir_bin
/doc/mariadb-[0-9]*"
unless
-
d
$dir_docs
;
$dir_docs
=
glob
"
$dir_bin
/doc/mariadb-[0-9]*"
unless
-
d
$dir_docs
;
...
@@ -44,12 +44,13 @@ if ($dir_bin eq '/usr/') {
...
@@ -44,12 +44,13 @@ if ($dir_bin eq '/usr/') {
$dir_docs
=
"
$dir_docs
/Docs"
;
# development tree
$dir_docs
=
"
$dir_docs
/Docs"
;
# development tree
}
}
}
}
$found_version
=
"No line 'M
ySQL
source #.#.#' in
$dir_docs
/INFO_SRC"
;
$found_version
=
"No line 'M
ariaDB
source #.#.#' in
$dir_docs
/INFO_SRC"
;
$found_revision
=
"No line 'revision-id: .....' in
$dir_docs
/INFO_SRC"
;
$found_revision
=
"No line 'revision-id: .....' in
$dir_docs
/INFO_SRC"
;
open
(
I_SRC
,
"<"
,
"
$dir_docs
/INFO_SRC"
)
or
print
"Cannot open 'INFO_SRC' in '
$dir_docs
' (starting from bindir '
$dir_bin
')
\n
"
;
open
(
I_SRC
,
"<"
,
"
$dir_docs
/INFO_SRC"
)
or
print
"Cannot open 'INFO_SRC' in '
$dir_docs
' (starting from bindir '
$dir_bin
')
\n
"
;
while
(
defined
(
$line
=
<
I_SRC
>
))
{
while
(
defined
(
$line
=
<
I_SRC
>
))
{
if
(
$line
=~
m
|^
MySQL
source
\d
+
\
.
\d
\
.
\d
+|
)
{
$found_version
=
"Found MySQL version number"
;}
if
(
$line
=~
m
|^
MariaDB
source
\d
+
\
.
\d
\
.
\d
+|
)
{
$found_version
=
"Found MariaDB version number"
;}
if
(
$line
=~
m
|^
revision
-
id
:
.*@.*-
2
\d
{
13
}
-
\w
+
$
|
)
{
$found_revision
=
"Found BZR revision id"
;}
if
(
$line
=~
m
|^
revision
-
id
:
.*@.*-
2
\d
{
13
}
-
\w
+
$
|
)
{
$found_revision
=
"Found revision id"
;}
if
(
$line
=~
m
|^
commit
:
\w
{
40
}
$
|
)
{
$found_revision
=
"Found revision id"
;}
}
}
close
I_SRC
;
close
I_SRC
;
print
"INFO_SRC:
$found_version
/
$found_revision
\n
"
;
print
"INFO_SRC:
$found_version
/
$found_revision
\n
"
;
...
...
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