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
87016b43
Commit
87016b43
authored
Oct 06, 2005
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make_binary_distribution.sh:
Reintroduced --machine Better sh compatibility, "for i ; do" is not portable
parent
dd241c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
scripts/make_binary_distribution.sh
scripts/make_binary_distribution.sh
+20
-11
No files found.
scripts/make_binary_distribution.sh
View file @
87016b43
...
@@ -17,10 +17,11 @@ MV="mv"
...
@@ -17,10 +17,11 @@ MV="mv"
STRIP
=
1
STRIP
=
1
DEBUG
=
0
DEBUG
=
0
SILENT
=
0
SILENT
=
0
PLATFORM
=
"
$system
-
$machine
"
MACHINE
=
""
PLATFORM
=
""
TMP
=
/tmp
TMP
=
/tmp
SUFFIX
=
""
SUFFIX
=
""
NDBCLUSTER
=
NDBCLUSTER
=
""
for
arg
do
for
arg
do
case
"
$arg
"
in
case
"
$arg
"
in
...
@@ -28,6 +29,7 @@ for arg do
...
@@ -28,6 +29,7 @@ for arg do
--tmp
=
*
)
TMP
=
`
echo
"
$arg
"
|
sed
-e
"s;--tmp=;;"
`
;;
--tmp
=
*
)
TMP
=
`
echo
"
$arg
"
|
sed
-e
"s;--tmp=;;"
`
;;
--suffix
=
*
)
SUFFIX
=
`
echo
"
$arg
"
|
sed
-e
"s;--suffix=;;"
`
;;
--suffix
=
*
)
SUFFIX
=
`
echo
"
$arg
"
|
sed
-e
"s;--suffix=;;"
`
;;
--no-strip
)
STRIP
=
0
;;
--no-strip
)
STRIP
=
0
;;
--machine
=
*
)
MACHINE
=
`
echo
"
$arg
"
|
sed
-e
"s;--machine=;;"
`
;;
--platform
=
*
)
PLATFORM
=
`
echo
"
$arg
"
|
sed
-e
"s;--platform=;;"
`
;;
--platform
=
*
)
PLATFORM
=
`
echo
"
$arg
"
|
sed
-e
"s;--platform=;;"
`
;;
--silent
)
SILENT
=
1
;;
--silent
)
SILENT
=
1
;;
--with-ndbcluster
)
NDBCLUSTER
=
1
;;
--with-ndbcluster
)
NDBCLUSTER
=
1
;;
...
@@ -38,6 +40,16 @@ for arg do
...
@@ -38,6 +40,16 @@ for arg do
esac
esac
done
done
if
[
x
"
$MACHINE
"
!=
x
""
]
;
then
machine
=
$MACHINE
fi
if
[
x
"
$PLATFORM
"
!=
x
""
]
;
then
platform
=
"
$PLATFORM
"
else
platform
=
"
$system
-
$machine
"
fi
# FIXME This should really be integrated with automake and not duplicate the
# FIXME This should really be integrated with automake and not duplicate the
# installation list.
# installation list.
...
@@ -78,7 +90,8 @@ copyfileto()
...
@@ -78,7 +90,8 @@ copyfileto()
{
{
destdir
=
$1
destdir
=
$1
shift
shift
for
i
;
do
for
i
do
if
[
-f
$i
]
;
then
if
[
-f
$i
]
;
then
$CP
$i
$destdir
$CP
$i
$destdir
elif
[
-d
$i
]
;
then
elif
[
-d
$i
]
;
then
...
@@ -293,11 +306,9 @@ BASE=$BASE2
...
@@ -293,11 +306,9 @@ BASE=$BASE2
# If we are compiling with gcc, copy libgcc.a to the distribution as libmygcc.a
# If we are compiling with gcc, copy libgcc.a to the distribution as libmygcc.a
#
#
if
[
x
"@GXX@"
=
x
"yes"
]
if
[
x
"@GXX@"
=
x
"yes"
]
;
then
then
gcclib
=
`
@CC@
--print-libgcc-file
`
gcclib
=
`
@CC@
--print-libgcc-file
`
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
;
then
then
print
"Warning: Couldn't find libgcc.a!"
print
"Warning: Couldn't find libgcc.a!"
else
else
$CP
$gcclib
$BASE
/lib/libmygcc.a
$CP
$gcclib
$BASE
/lib/libmygcc.a
...
@@ -323,8 +334,7 @@ which_1 ()
...
@@ -323,8 +334,7 @@ which_1 ()
do
do
for
file
in
$d
/
$cmd
for
file
in
$d
/
$cmd
do
do
if
[
-x
$file
-a
!
-d
$file
]
if
[
-x
$file
-a
!
-d
$file
]
;
then
then
echo
$file
echo
$file
exit
0
exit
0
fi
fi
...
@@ -341,8 +351,7 @@ if [ $BASE_SYSTEM != "netware" ] ; then
...
@@ -341,8 +351,7 @@ if [ $BASE_SYSTEM != "netware" ] ; then
#
#
tar
=
`
which_1 gnutar gtar
`
tar
=
`
which_1 gnutar gtar
`
if
[
"
$?
"
=
"1"
-o
x
"
$tar
"
=
x
""
]
if
[
"
$?
"
=
"1"
-o
x
"
$tar
"
=
x
""
]
;
then
then
tar
=
tar
tar
=
tar
fi
fi
...
...
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