make_release_packages revision 731
1276N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 346N/A# Use is subject to license terms. 346N/A# Permission is hereby granted, free of charge, to any person obtaining a 346N/A# copy of this software and associated documentation files (the 919N/A# "Software"), to deal in the Software without restriction, including 919N/A# without limitation the rights to use, copy, modify, merge, publish, 919N/A# distribute, and/or sell copies of the Software, and to permit persons 919N/A# to whom the Software is furnished to do so, provided that the above 919N/A# copyright notice(s) and this permission notice appear in all copies of 919N/A# the Software and that both the above copyright notice(s) and this 919N/A# permission notice appear in supporting documentation. 919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 919N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 919N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 919N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 919N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 919N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 919N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 919N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 919N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 346N/A# Except as contained in this notice, the name of a copyright holder 346N/A# shall not be used in advertising or otherwise to promote the sale, use 346N/A# or other dealings in this Software without prior written authorization 493N/A# of the copyright holder. 970N/A# @(#)make_release_packages 1.74 09/06/18 970N/A# Create and fill a package staging area for X 1356N/A# This script should be run from the base of the build tree. 346N/A# ./make_release_packages 1549N/A# To build a subset of packages 1549N/A# ./make_release_packages packages 911N/A# env PACKAGE_LIST="packages" ./make_release_packages 1068N/A# Make sure that we aren't affected by the personal environment of 1068N/A# whoever is running this script 346N/A# List of official (deliverable) X-window packages for all platforms 346N/A SUNWpciaccess SUNWpixman SUNWfreetype2 SUNWvncviewer SUNWxcursor-themes 970N/A SUNWxorg-client-docs SUNWxorg-client-programs 970N/A SUNWxorg-clientlibs SUNWxorg-compatlinks 970N/A SUNWxorg-graphics-ddx SUNWxorg-headers 346N/A SUNWxorg-server SUNWxorg-tsol-module 346N/A SUNWxscreensaver-hacks SUNWxscreensaver-hacks-gl 346N/A SUNWxvnc SUNWxwacx SUNWxwcft SUNWxwdem SUNWxwdxm SUNWxwfnt SUNWxwfs SUNWxwfsw SUNWxwice SUNWxwinc SUNWxwman SUNWxwmod SUNWxwoft SUNWxwopt SUNWxwplr SUNWxwplt SUNWxwpmn SUNWxwrtl SUNWxwslb SUNWxwsvr # Some packages are only built for certain platforms currently # Localization template packages for delivery to translation teams SUNW0xwplt SUNW0xwopt SUNW0xwsvr" # FSW* packages are built for the OpenSolaris (Project Indiana) deliveries # To build a subset of packages: # make_release_packages packages # env PACKAGE_LIST="packages" make_release_packages ### Functions for use later print -u2 "${progname}: ERROR: $*" # Which platform name do we use for 64-bit? *)
fatal_error "Unknown architecture - not SPARC nor i386." ;;
# Get build version from pkgversion fatal_error "${PKG_SOURCE_DIR}/pkgversion not found. Cannot continue." if [[ -z
"${VERSION}" ]] ;
then fatal_error "VERSION not set in ${PKG_SOURCE_DIR}/pkgversion - run newPkRev" if [[ -z
"${BUILD}" ]] ;
then fatal_error "BUILD not set in ${PKG_SOURCE_DIR}/pkgversion - run newPkRev" print "Building packages for X11 version ${VERSION} build ${DECIMAL_BUILD}" if [[
"${MACH}" =
"sparc" ]];
then # Next, create the staging area. print 'Removing old proto-packages and recreating' # Now copy the package description info print 'Copying package descriptions' print "packages/${package} not found ; skipping" # We keep the master copyright in the top-level copyright file # Packages that need additional copyright have copyright.add files # that we then merge here # Now move into the package staging area and build the packages. print --
'---Building packages' # Variables to pass to pkgmk for use in prototype files # They must start with lowercase letters to be resolved at pkgmk time print "******** Making the ${package} package ********" print "${PACKAGE_DIR}/${package} was not found ; skipping" # build filename from the .tmpl if [[ -f
"${pf}.tmpl" && ! -f
"${pf}" ]] ;
then # build filename from the .tmpl if [[ -f
"${df}.tmpl" && ! -f
"${df}" ]] ;
then # Simple package with the same prototype on all platforms # Package with some platform-specific settings in prototype print "******** Done Making the ${package} package ********" print -n
"Packages built: " print -n
"Packages failed: " # Create an installdir with symlinks to built packages