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

Side by Side Diff: cloud_print/virtual_driver/posix/mac_packaging/build_mac.sh

Issue 7670010: Packaging scripts for Mac and Linux Cloud Print Drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
OLDNEW
(Empty)
1 #!/bin/bash
2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 set -u
8 set -e
9
10 # Change to directory in which we are located.
11 SCRIPTDIR="$( cd "$( dirname "$0" )" && pwd )"
12 cd $SCRIPTDIR
13
14 #### INSTALLER #####
15
16 # Set up the directory structure for the package
17 mkdir -p Resources
18 mkdir -p package_root/usr/libexec/cups/backend
19
20 # Move out files to the directory structure
21 mv GCP-driver package_root/usr/libexec/cups/backend
Scott Byer 2011/08/16 23:31:25 Do these want to be moves or copies? What if I run
22 mv GCP-driver.ppd Resources
23 mv GCP-install Resources
24 mv install.sh Resources
25
26 # Actually build our package
27 /Developer/usr/bin/packagemaker \
28 -d GCP-Virtual-Driver.pmdoc -t GCP-virtual-driver
Scott Byer 2011/08/16 23:31:25 indent 2 spaces on a continuation
abeera 2011/08/16 23:55:03 Done.
29
30
Scott Byer 2011/08/16 23:31:25 nit: extra lines. Be consistent with line spacing.
abeera 2011/08/16 23:55:03 Done.
31
32 ##### UNINSTALLER #####
33
34 #Clean up any old uninstaller
35 rm -rf uninstall_resources
36 mkdir uninstall_resources
37 mv GCP-uninstall uninstall_resources
38 mv uninstall.sh uninstall_resources
39
40
41 ##### CLEANUP #####
42 rm -rf Resources
43 rm -rf package_root
44 rm -rf GCP-Virtual-Driver.pmdoc
45 rm build_mac.sh
46
47
Scott Byer 2011/08/16 23:31:25 nit: extra lines
abeera 2011/08/16 23:55:03 Done.
48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698