Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |