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

Unified 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: Style fixes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/virtual_driver/posix/linux_packaging/build.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b142aea71c046ca7e20ef8a55dd09963bd5199ae
--- /dev/null
+++ b/cloud_print/virtual_driver/posix/mac_packaging/build_mac.sh
@@ -0,0 +1,47 @@
+#!/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
+# These files are copied in by the GYP file, so
+# we move them.
+mv GCP-driver package_root/usr/libexec/cups/backend
+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
+
+
+
+##### 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
« no previous file with comments | « cloud_print/virtual_driver/posix/linux_packaging/build.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698