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
d4a62b9c
Commit
d4a62b9c
authored
Jan 07, 2005
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/space/my/mysql-4.1
parents
000c6760
cd451c0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Build-tools/Do-pkg
Build-tools/Do-pkg
+18
-0
No files found.
Build-tools/Do-pkg
View file @
d4a62b9c
...
@@ -31,6 +31,7 @@ $opt_help= undef;
...
@@ -31,6 +31,7 @@ $opt_help= undef;
$opt_log
=
undef
;
$opt_log
=
undef
;
$opt_mail
=
"";
$opt_mail
=
"";
$opt_skip_dmg
=
undef
;
$opt_skip_dmg
=
undef
;
$opt_skip_prefpane
=
undef
;
$opt_skip_si
=
undef
;
$opt_skip_si
=
undef
;
$opt_suffix
=
undef
;
$opt_suffix
=
undef
;
$opt_verbose
=
undef
;
$opt_verbose
=
undef
;
...
@@ -41,6 +42,7 @@ GetOptions(
...
@@ -41,6 +42,7 @@ GetOptions(
"
help|h
",
"
help|h
",
"
log|l:s
",
"
log|l:s
",
"
mail|m=s
",
"
mail|m=s
",
"
skip-prefpane|p
",
"
skip-dmg|skip-disk-image|s
",
"
skip-dmg|skip-disk-image|s
",
"
skip-si|skip-startup-item
",
"
skip-si|skip-startup-item
",
"
suffix=s
",
"
suffix=s
",
...
@@ -82,6 +84,7 @@ $HOST=~ /^([^.-]*)/;
...
@@ -82,6 +84,7 @@ $HOST=~ /^([^.-]*)/;
$HOST
=
$1
;
$HOST
=
$1
;
$LOGFILE
=
"
$PWD
/Logs/
$HOST
-
$MAJOR
.
$MINOR$SUFFIX
.log
";
$LOGFILE
=
"
$PWD
/Logs/
$HOST
-
$MAJOR
.
$MINOR$SUFFIX
.log
";
$BUILDDIR
=
"
$PWD
/
$HOST
";
$BUILDDIR
=
"
$PWD
/
$HOST
";
$PREFPANE
=
"
$PWD
/mysql-administrator/source/mac/PreferencePane/build/MySQL.prefPane
";
$SRCBASEDIR
=
<
$BUILDDIR
/
mysql
*-
$VERSION
>
;
$SRCBASEDIR
=
<
$BUILDDIR
/
mysql
*-
$VERSION
>
;
$SUPFILEDIR
=
<
$SRCBASEDIR
/support-files/
MacOSX
>
;
$SUPFILEDIR
=
<
$SRCBASEDIR
/support-files/
MacOSX
>
;
$TAR
=
<
$BUILDDIR
/
$NAME
-
apple
-
darwin
*-
powerpc
.
tar
.
gz
>
;
$TAR
=
<
$BUILDDIR
/
$NAME
-
apple
-
darwin
*-
powerpc
.
tar
.
gz
>
;
...
@@ -219,6 +222,19 @@ unless ($opt_skip_si)
...
@@ -219,6 +222,19 @@ unless ($opt_skip_si)
&
run_command
(
$command
,
"
Error while building package
$SI_NAME
.pkg!
");
&
run_command
(
$command
,
"
Error while building package
$SI_NAME
.pkg!
");
}
}
#
# Include the MySQL Preference Pane
#
unless
(
$opt_skip_prefpane
)
{
&
abort
("
Could not find PrefPane helper application. Did you compile and install it?
")
unless
(
-
f
"
$PREFPANE
/Contents/Resources/mahelper
");
&
logger
("
Including
$PREFPANE
in
$PKGDEST
");
&
run_command
("
mkdir
$PKGDEST
/MySQL.prefPane
",
"
Could not create
$PKGDEST
/MySQL.prefPane!
");
&
run_command
("
ditto
$PREFPANE
$PKGDEST
/MySQL.prefPane
",
"
Could not copy
$PREFPANE
into
$PKGDEST
!
");
&
run_command
("
chown -R root:wheel
$PKGDEST
/MySQL.prefPane
",
"
Cannot chown
$PKGDEST
/MySQL.prefPane!
");
}
if
(
$opt_skip_dmg
)
if
(
$opt_skip_dmg
)
{
{
&
logger
("
SUCCESS: Package
$PKGDEST
/
$NAME
.pkg created
");
&
logger
("
SUCCESS: Package
$PKGDEST
/
$NAME
.pkg created
");
...
@@ -254,6 +270,7 @@ chomp($mountpoint=`mount | grep "\/Volumes\/$NAME" | cut -f3 -d" "`) if (!$opt_d
...
@@ -254,6 +270,7 @@ chomp($mountpoint=`mount | grep "\/Volumes\/$NAME" | cut -f3 -d" "`) if (!$opt_d
&
logger
("
Copying
$PKGDEST
/
$NAME
.pkg to Disk image /Volumes/
$NAME
");
&
logger
("
Copying
$PKGDEST
/
$NAME
.pkg to Disk image /Volumes/
$NAME
");
&
run_command
("
ditto
$PKGDEST
/Volumes/
$NAME
",
"
Could not copy
$PKGDEST
to /Volumes/
$NAME
!
");
&
run_command
("
ditto
$PKGDEST
/Volumes/
$NAME
",
"
Could not copy
$PKGDEST
to /Volumes/
$NAME
!
");
&
run_command
("
ditto
$SUPFILEDIR
/ReadMe.txt /Volumes/
$NAME
",
"
Could not copy
$SPFILEDIR
/ReadMe.txt to /Volumes/
$NAME
!
");
&
run_command
("
ditto
$SUPFILEDIR
/ReadMe.txt /Volumes/
$NAME
",
"
Could not copy
$SPFILEDIR
/ReadMe.txt to /Volumes/
$NAME
!
");
&
run_command
("
chown root:wheel /Volumes/
$NAME
/ReadMe.txt
",
"
Could not fix ownerships of /Volumes/
$NAME
/ReadMe.txt!
");
chomp
(
$mountpoint
=
`
mount | grep "
\
/Volumes
\
/
$NAME
" | cut -f1 -d" "
`)
if
(
!
$opt_dry_run
);
chomp
(
$mountpoint
=
`
mount | grep "
\
/Volumes
\
/
$NAME
" | cut -f1 -d" "
`)
if
(
!
$opt_dry_run
);
&
abort
("
/Volumes/
$NAME
not attached!
")
if
(
!
$mountpoint
&&
!
$opt_dry_run
);
&
abort
("
/Volumes/
$NAME
not attached!
")
if
(
!
$mountpoint
&&
!
$opt_dry_run
);
&
logger
("
Unmounting
$mountpoint
");
&
logger
("
Unmounting
$mountpoint
");
...
@@ -302,6 +319,7 @@ Options:
...
@@ -302,6 +319,7 @@ Options:
if logging is enabled)
if logging is enabled)
Note that the \@-Sign needs to be quoted!
Note that the \@-Sign needs to be quoted!
Example: --mail=user\\\@domain.com
Example: --mail=user\\\@domain.com
-p, --skip-prefpane Skip including the PreferencePane
-s, --skip-disk-image, --skip-dmg Just build the PKGs, don't put it into a
-s, --skip-disk-image, --skip-dmg Just build the PKGs, don't put it into a
disk image afterwards
disk image afterwards
--skip-startup-item, --skip-si Skip the creation of the StartupItem PKG
--skip-startup-item, --skip-si Skip the creation of the StartupItem PKG
...
...
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