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
2f91f236
Commit
2f91f236
authored
Dec 01, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get correct paths in mysql_config even if the user moves basedir
parent
e5731104
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
scripts/mysql_config.sh
scripts/mysql_config.sh
+39
-0
No files found.
scripts/mysql_config.sh
View file @
2f91f236
...
...
@@ -18,11 +18,50 @@
# This script reports various configuration settings that may be needed
# when using the MySQL client library.
which
()
{
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
':'
for
file
do
for
dir
in
$PATH
do
if
test
-f
$dir
/
$file
then
echo
"
$dir
/
$file
"
continue
2
fi
done
echo
"which: no
$file
in (
$PATH
)"
exit
1
done
IFS
=
"
$save_ifs
"
}
fix_path
()
{
eval
path
=
\$
"
$1
"
if
[
!
-f
"
$path
"
]
;
then
eval
"
$1
"
=
$basedir
/
$2
fi
}
abs_path
=
`
expr
\(
substr
$0
1 1
\)
=
'/'
`
if
[
"x
$abs_path
"
=
"x1"
]
;
then
me
=
$0
else
me
=
`
which mysql_config
`
fi
basedir
=
`
echo
$me
|
sed
-e
's;/bin/mysql_config;;'
`
ldata
=
'@localstatedir@'
execdir
=
'@libexecdir@'
bindir
=
'@bindir@'
pkglibdir
=
'@pkglibdir@'
fix_path pkglibdir lib/mysql
pkgincludedir
=
'@pkgincludedir@'
fix_path pkgincludedir include/mysql
version
=
'@VERSION@'
socket
=
'@MYSQL_UNIX_ADDR@'
port
=
'@MYSQL_TCP_PORT@'
...
...
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