Ticket #5525: portpkg.tcl.diff
File portpkg.tcl.diff, 2.1 KB (added by jmpalacios (Juan Manuel Palacios), 18 years ago) |
---|
-
portpkg.tcl
old new 1 1 # et:ts=4 2 2 # portpkg.tcl 3 # $Id: portpkg.tcl,v 1. 5 2005/08/27 00:07:27pguyot Exp $3 # $Id: portpkg.tcl,v 1.2.6.2 2005/09/05 01:12:16 pguyot Exp $ 4 4 # 5 5 # Copyright (c) 2002 - 2003 Apple Computer, Inc. 6 6 # All rights reserved. … … 43 43 } 44 44 45 45 # define options 46 options package.type package.destpath 46 options package.type package.destpath package.resources 47 47 48 48 # Set defaults 49 49 default package.destpath {${workpath}} … … 51 51 set_ui_prefix 52 52 53 53 proc pkg_main {args} { 54 global portname portversion portrevision package.type package.destpath UI_PREFIX54 global portname portversion portrevision package.type package.destpath package.resources UI_PREFIX 55 55 56 56 ui_msg "$UI_PREFIX [format [msgcat::mc "Creating pkg for %s-%s"] ${portname} ${portversion}]" 57 57 … … 59 59 } 60 60 61 61 proc package_pkg {portname portversion portrevision} { 62 global UI_PREFIX portdbpath destpath workpath prefix portresourcepath description package.destpath long_description homepage portpath 62 global UI_PREFIX portdbpath destpath workpath prefix portresourcepath\ 63 description package.destpath package.resources long_description homepage portpath filespath 63 64 64 65 set resourcepath ${workpath}/pkg_resources 65 66 # XXX: we need to support .lproj in resources. … … 84 85 } 85 86 write_welcome_html ${pkgpath}/Contents/Resources/Welcome.html $portname $portversion $pkg_long_description $pkg_description $pkg_homepage 86 87 file copy -force -- ${portresourcepath}/package/background.tiff ${pkgpath}/Contents/Resources/background.tiff 88 89 if {[info exists package.resources]} { 90 foreach file ${package.resources} { 91 if {![file exists ${file}]} { 92 ui_msg "$UI_PREFIX ${file} from package.resources not found." 93 } else { 94 file copy -force -- ${file} ${pkgpath}/Contents/Resources/ 95 } 96 } 97 } 98 87 99 system "mkbom ${destpath} ${pkgpath}/Contents/Archive.bom" 88 100 system "cd ${destpath} && pax -x cpio -w -z . > ${pkgpath}/Contents/Archive.pax.gz" 89 101