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
d5547ad1
Commit
d5547ad1
authored
Aug 07, 2003
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- some fixed for make_win_src_distribution to work properly
parent
e56383ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
23 deletions
+18
-23
Build-tools/Bootstrap
Build-tools/Bootstrap
+0
-4
scripts/Makefile.am
scripts/Makefile.am
+1
-0
scripts/make_win_src_distribution.sh
scripts/make_win_src_distribution.sh
+17
-19
No files found.
Build-tools/Bootstrap
View file @
d5547ad1
...
...
@@ -310,10 +310,6 @@ $command= "make dist";
if
(
$opt_win_dist
)
{
&
logger
("
Creating Windows source package
");
chdir
("
scripts
");
$command
=
"
make make_win_src_distribution
";
&
run_command
(
$command
,
"
make make_win_src_distribution failed!
");
chdir
("
..
");
$command
=
"
./scripts/make_win_src_distibution
";
&
run_command
(
$command
,
"
make_win_src_distribution failed!
");
}
...
...
scripts/Makefile.am
View file @
d5547ad1
...
...
@@ -17,6 +17,7 @@
## Process this file with automake to create Makefile.in
bin_SCRIPTS
=
@server_scripts@
\
make_win_src_distribution
\
msql2mysql
\
mysql_config
\
mysql_fix_privilege_tables
\
...
...
scripts/make_win_src_distribution.sh
View file @
d5547ad1
...
...
@@ -38,9 +38,9 @@ fi
# Debug print of the status
#
print_debug
()
print_debug
()
{
for
statement
for
statement
do
if
[
"
$DEBUG
"
=
"1"
]
;
then
echo
$statement
...
...
@@ -52,7 +52,7 @@ print_debug()
# Usage of the script
#
show_usage
()
show_usage
()
{
echo
"MySQL utility script to create a Windows src package, and it takes"
echo
"the following arguments:"
...
...
@@ -98,14 +98,14 @@ parse_arguments "$@"
for
i
in
$TMP
$TMPDIR
$TEMPDIR
$TEMP
/tmp
do
if
[
"
$i
"
]
;
then
if
[
"
$i
"
]
;
then
print_debug
"Setting TMP to '
$i
'"
TMP
=
$i
TMP
=
$i
break
fi
done
#
#
...
...
@@ -123,14 +123,12 @@ $CP -r $SOURCE/VC++Files $BASE
(
find
$BASE
\(
-name
"*.dsp"
-o
-name
"*.dsw"
\)
-and
-not
-path
\*
SCCS
\*
-print
)
|
(
while
read
v
while
read
v
do
print_debug
"Replacing LF -> CRLF from '
$v
'"
# ^M -> type CTRL V + CTRL M
cat
$v
|
sed
's/
//'
|
sed
's/$/
/'
>
$v
.tmp
# ^M -> type CTRL V + CTRL M
cat
$v
|
sed
's/ //'
|
sed
's/$/ /'
>
$v
.tmp
rm
$v
mv
$v
.tmp
$v
done
...
...
@@ -149,7 +147,7 @@ rm -r -f "$BASE/share/Makefile.am"
# Clean up if we did this from a bk tree
#
if
[
-d
$BASE
/SCCS
]
if
[
-d
$BASE
/SCCS
]
then
find
$BASE
/
-type
d
-name
SCCS
-printf
"
\"
%p
\"
"
| xargs
rm
-r
-f
fi
...
...
@@ -171,9 +169,9 @@ copy_dir_files()
mkdir
$BASE
/
$arg
fi
for
i
in
*
.c
*
.cpp
*
.h
*
.ih
*
.i
*
.ic
*
.asm
*
.def
\
README INSTALL
*
LICENSE
do
if
[
-f
$i
]
README INSTALL
*
LICENSE
do
if
[
-f
$i
]
then
$CP
$SOURCE
/
$arg
/
$i
$BASE
/
$arg
/
$i
fi
...
...
@@ -198,14 +196,14 @@ copy_dir_dirs() {
for
arg
do
basedir
=
$arg
if
[
!
-d
$BASE
/
$arg
]
;
then
mkdir
$BASE
/
$arg
fi
copy_dir_files
$arg
cd
$SOURCE
/
$arg
/
cd
$SOURCE
/
$arg
/
for
i
in
*
do
if
[
-d
$SOURCE
/
$basedir
/
$i
]
&&
[
"
$i
"
!=
"SCCS"
]
;
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