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