make_release_packages revision 919
606N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 731N/A# Use is subject to license terms. 0N/A# Permission is hereby granted, free of charge, to any person obtaining a 919N/A# copy of this software and associated documentation files (the "Software"), 919N/A# to deal in the Software without restriction, including without limitation 919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 919N/A# and/or sell copies of the Software, and to permit persons to whom the 919N/A# Software is furnished to do so, subject to the following conditions: 919N/A# The above copyright notice and this permission notice (including the next 919N/A# paragraph) shall be included in all copies or substantial portions of the 919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 919N/A# DEALINGS IN THE SOFTWARE. 0N/A# Create and fill a package staging area for X 0N/A# This script should be run from the base of the build tree. 0N/A# It takes no parameters. 0N/A# ./make_release_packages 0N/A# To build a subset of packages 561N/A# ./make_release_packages packages 0N/A# env PACKAGE_LIST="packages" ./make_release_packages 0N/A# Make sure that we aren't affected by the personal environment of 0N/A# whoever is running this script 493N/A# List of official (deliverable) X-window packages for all platforms 837N/A SUNWfont-xorg-iso8859-1 837N/A SUNWfont-xorg-iso8859-2 837N/A SUNWfont-xorg-iso8859-3 837N/A SUNWfont-xorg-iso8859-4 837N/A SUNWfont-xorg-iso8859-5 837N/A SUNWfont-xorg-iso8859-7 837N/A SUNWfont-xorg-iso8859-8 837N/A SUNWfont-xorg-iso8859-9 837N/A SUNWfont-xorg-iso8859-10 837N/A SUNWfont-xorg-iso8859-11 837N/A SUNWfont-xorg-iso8859-13 837N/A SUNWfont-xorg-iso8859-14 837N/A SUNWfont-xorg-iso8859-15 837N/A SUNWfont-xorg-iso8859-16 837N/A SUNWxorg-client-programs 493N/A# Localization template packages for delivery to translation teams 561N/A# To build a subset of packages: 561N/A# make_release_packages packages 561N/A# env PACKAGE_LIST="packages" make_release_packages 493N/A### Functions for use later 493N/A print -u2 "${progname}: ERROR: $*" 606N/A system(\"cat $1/\" \$2) 493N/A# Which platform name do we use for 64-bit? 906N/A# Hardcode base package version for now, append OS version from uname 906N/A# Get build version from hg by searching for most recent tag matching nv_* 906N/A perl -l -n -e 'if ($_ =~ m/^tag:\s+nv_(\d+)/) {print $1 ; exit}')" 906N/Aif [[ -z
"${BUILD_TAG}" ]] ;
then 906N/Aprint "Building packages for X11 version ${VERSION} build ${BUILD_TAG}" 493N/Aif [[
"${MACH}" =
"sparc" ]];
then 493N/A# Next, create the staging area. 493N/Aprint 'Removing old proto-packages and recreating' 0N/A# Now copy the package description info 493N/Aprint 'Copying package descriptions' 606N/A print "packages/${package} not found ; skipping" 0N/A # We keep the master copyright in the top-level copyright file 0N/A # that we then merge here 0N/A# Now move into the package staging area and build the packages. 493N/Aprint --
'---Building packages' 0N/A# Variables to pass to pkgmk for use in prototype files 0N/A# They must start with lowercase letters to be resolved at pkgmk time 606N/A print "******** Making the ${package} package ********" 606N/A print "${PACKAGE_DIR}/${package} was not found ; skipping" 561N/A # build filename from the .tmpl 561N/A if [[ -f
"${pf}.tmpl" && ! -f
"${pf}" ]] ;
then 606N/A # build filename from the .tmpl 606N/A if [[ -f
"${df}.tmpl" && ! -f
"${df}" ]] ;
then 493N/A # Simple package with the same prototype on all platforms 493N/A # Package with some platform-specific settings in prototype 493N/A print "******** Done Making the ${package} package ********" 493N/Aprint -n
"Packages built: " 493N/Aprint -n
"Packages failed: " 561N/A# Create an installdir with symlinks to built packages