Index: cloud_print/virtual_driver/posix/mac_packaging/build_mac.sh |
diff --git a/cloud_print/virtual_driver/posix/mac_packaging/build_mac.sh b/cloud_print/virtual_driver/posix/mac_packaging/build_mac.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..066a9b905568b6419f30c856b861668df6221ad3 |
--- /dev/null |
+++ b/cloud_print/virtual_driver/posix/mac_packaging/build_mac.sh |
@@ -0,0 +1,48 @@ |
+#!/bin/bash |
+# |
+# Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+set -u |
+set -e |
+ |
+# Change to directory in which we are located. |
+SCRIPTDIR="$( cd "$( dirname "$0" )" && pwd )" |
+cd $SCRIPTDIR |
+ |
+#### INSTALLER ##### |
+ |
+# Set up the directory structure for the package |
+mkdir -p Resources |
+mkdir -p package_root/usr/libexec/cups/backend |
+ |
+# Move out files to the directory structure |
+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
|
+mv GCP-driver.ppd Resources |
+mv GCP-install Resources |
+mv install.sh Resources |
+ |
+# Actually build our package |
+/Developer/usr/bin/packagemaker \ |
+-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.
|
+ |
+ |
Scott Byer
2011/08/16 23:31:25
nit: extra lines. Be consistent with line spacing.
abeera
2011/08/16 23:55:03
Done.
|
+ |
+##### UNINSTALLER ##### |
+ |
+#Clean up any old uninstaller |
+rm -rf uninstall_resources |
+mkdir uninstall_resources |
+mv GCP-uninstall uninstall_resources |
+mv uninstall.sh uninstall_resources |
+ |
+ |
+##### CLEANUP ##### |
+rm -rf Resources |
+rm -rf package_root |
+rm -rf GCP-Virtual-Driver.pmdoc |
+rm build_mac.sh |
+ |
+ |
Scott Byer
2011/08/16 23:31:25
nit: extra lines
abeera
2011/08/16 23:55:03
Done.
|
+ |