| 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 # These files are copied in by the GYP file, so | |
| 22 # we move them. | |
| 23 mv GCP-driver package_root/usr/libexec/cups/backend | |
| 24 mv GCP-driver.ppd Resources | |
| 25 mv GCP-install Resources | |
| 26 mv install.sh Resources | |
| 27 | |
| 28 # Actually build our package | |
| 29 /Developer/usr/bin/packagemaker \ | |
| 30 -d GCP-Virtual-Driver.pmdoc -t GCP-virtual-driver | |
| 31 | |
| 32 | |
| 33 | |
| 34 ##### UNINSTALLER ##### | |
| 35 | |
| 36 #Clean up any old uninstaller | |
| 37 rm -rf uninstall_resources | |
| 38 mkdir uninstall_resources | |
| 39 mv GCP-uninstall uninstall_resources | |
| 40 mv uninstall.sh uninstall_resources | |
| 41 | |
| 42 | |
| 43 ##### CLEANUP ##### | |
| 44 rm -rf Resources | |
| 45 rm -rf package_root | |
| 46 rm -rf GCP-Virtual-Driver.pmdoc | |
| 47 rm build_mac.sh | |
| OLD | NEW |