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
cbe16b87
Commit
cbe16b87
authored
Nov 12, 2007
by
sunny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Minor fix, remove the constant, calculate the length of
string dynamically.
parent
85ba4bd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
scripts/build-plugin.sh
scripts/build-plugin.sh
+10
-1
No files found.
scripts/build-plugin.sh
View file @
cbe16b87
...
...
@@ -26,6 +26,14 @@
set
-eu
# Calculate the length of a string
strlen
()
{
STRLEN
=
`
echo
"
$@
"
|
wc
-c
|
cut
-c1-8
`
STRLEN
=
`
expr
$STRLEN
- 1
`
echo
$STRLEN
}
# Set to dummy value if not defined
:
${
CC
=
"x"
}
:
${
CXX
=
"x"
}
...
...
@@ -48,6 +56,7 @@ INNODIR="storage/innobase"
DYNTMPFILE
=
"/tmp/configure.
$$
"
DYNCONFIG
=
"
$INNODIR
/scripts/dynconfig"
SVN_REPO
=
"https://svn.innodb.com/svn/innodb"
SVN_REPO_STRLEN
=
`
strlen
$SVN_REPO
`
if
[
$#
-lt
4
]
;
then
echo
>
&2
"Usage:
$0
mysql-source-dir build-dir innosrc (/path/to/mysqlbug | - followed by configure options)"
...
...
@@ -80,7 +89,7 @@ rm -rf $INNODIR
# If we are building from the SVN repository then use svn tools
# otherwise the assumption is that we are dealing with a gzipped
# tarball.
REPO
=
${
SVN
:0:
33
}
REPO
=
${
SVN
:0:
$SVN_REPO_STRLEN
}
if
[
"
$REPO
"
x
=
"
$SVN_REPO
"
x
]
;
then
$SVN_CO
"
$SVN
"
$INNODIR
else
...
...
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