Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: installer/mac/make_installer.sh

Issue 195023: Add scripts to automatically build installer and disk image in GYP build. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « installer/mac/make_disk_image.sh ('k') | plugin/idl/idl.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2 # Makes the O3D installer.
3 # Syntax: make_installer version_string
4 #
5 # Copyright 2009, Google Inc.
6 # All rights reserved.
7 #
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions are
10 # met:
11 #
12 # * Redistributions of source code must retain the above copyright
13 # notice, this list of conditions and the following disclaimer.
14 # * Redistributions in binary form must reproduce the above
15 # copyright notice, this list of conditions and the following disclaimer
16 # in the documentation and/or other materials provided with the
17 # distribution.
18 # * Neither the name of Google Inc. nor the names of its
19 # contributors may be used to endorse or promote products derived from
20 # this software without specific prior written permission.
21 #
22 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
34 # Make the installer by copying any missing raw materials to the built products
35 # directory and then invoking "freeze" on the installer project file.
36 # Does not currently use the passed-in version string.
37
38 O3D_INTERNAL_DIR="${PROJECT_DIR}/../../../o3d-internal"
39 # If the o3d-internal depot is present, make installer.
40 if [ -d "${O3D_INTERNAL_DIR}" ]
41 then
42 MAC_INSTALLER_DIR="${O3D_INTERNAL_DIR}/mac_installer"
43 if [ -d "${MAC_INSTALLER_DIR}" ]
44 then
45 # Get the installer project.
46 cp -f "${MAC_INSTALLER_DIR}/o3d.packproj" \
47 "${BUILT_PRODUCTS_DIR}"
48
49 # Get the keystone post install script.
50 cp -f "${MAC_INSTALLER_DIR}/postflight.sh" \
51 "${BUILT_PRODUCTS_DIR}"
52
53 # Get keystone.
54 cp -R -f "${MAC_INSTALLER_DIR}/GoogleSoftwareUpdate.pkg" \
55 "${BUILT_PRODUCTS_DIR}"
56
57 # Get the installer plug-in which asks about stats collection.
58 cp -R -f "${MAC_INSTALLER_DIR}/O3D_Stats.bundle" \
59 "${BUILT_PRODUCTS_DIR}"
60
61 # Now we have everything in-place, make the installer.
62 /usr/local/bin/freeze "${BUILT_PRODUCTS_DIR}/o3d.packproj"
63
64 echo Mac installer built.
65 else
66 echo Mac installer directory not found.
67 fi
68 else
69 echo External build - not making installer.
70 fi
71
OLDNEW
« no previous file with comments | « installer/mac/make_disk_image.sh ('k') | plugin/idl/idl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698