make_release_packages revision 247
1193N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 1193N/A# Permission is hereby granted, free of charge, to any person obtaining a 1193N/A# copy of this software and associated documentation files (the 1193N/A# "Software"), to deal in the Software without restriction, including 1193N/A# without limitation the rights to use, copy, modify, merge, publish, 1193N/A# distribute, and/or sell copies of the Software, and to permit persons 1193N/A# to whom the Software is furnished to do so, provided that the above 1193N/A# copyright notice(s) and this permission notice appear in all copies of 1193N/A# the Software and that both the above copyright notice(s) and this 1193N/A# permission notice appear in supporting documentation. 1193N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1193N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1193N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 1193N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 1193N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 1193N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 1193N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 1193N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 1193N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1193N/A# Except as contained in this notice, the name of a copyright holder 1193N/A# shall not be used in advertising or otherwise to promote the sale, use 1193N/A# or other dealings in this Software without prior written authorization 1193N/A# @(#)make_release_packages 1.55 07/11/06 1339N/A# Create and fill a package staging area for X 1339N/A# This script should be run from the base of the build tree. 1193N/A# To build a subset of packages 1193N/A# env PACKAGE_LIST="packages" ./make_release_packages 1193N/A# Make sure that we aren't affected by the personal environment of 1193N/A# whoever is running this script 1193N/A# List of official (deliverable) X-window packages SUNWxwice SUNWxwopt SUNWxwpmn SUNWxwsrc SUNWxwacx SUNWxwdxm \ SUNWxwhl SUNWi1of SUNWxwfa SUNWxwpft SUNWxwsrv SUNWxwoft \ SUNWfontconfig SUNWfontconfig-root SUNWfontconfig-docs SUNWxwsvr \ SUNWxscreensaver-hacks SUNWfreetype2 SUNWxwxft \ SUNWxorg-clientlibs SUNWxorg-devel-docs SUNWxorg-headers \ SUNWxorg-client-docs SUNWxorg-client-programs SUNWxorg-compatlinks \ SUNWxprint-server SUNWxcursor-themes SUNWvncviewer" # L10N packages are normally only built on sparc since they only have text # files that are the same for both platforms # Which platform name do we use for 64-bit? if [
"$MACH" =
"sparc" ];
then if [
"$MACH" =
"i386" ];
then echo "Unknown architecture - not SPARC nor i386." # Trusted Extensions packages # Packages with platform-specific prototype files, including those with SUNWxwmod SUNWxscreensaver-hacks-gl SUNWxwman SUNWxwfsw \ SUNWxorg-server SUNWxorg-graphics-ddx SUNWxorg-doc SUNWxorg-cfg \ # Some packages are only built for certain platforms currently if [
"$MACH" =
"sparc" ];
then # To build a subset of packages # PACKAGE_LIST="packages" make_release_packages # Get build version from pkgversion if [
"x${VERSION}" =
"x" ] ;
then if [
"x${BUILD}" =
"x" ] ;
then echo "Building packages for X11 version ${VERSION} build ${DECIMAL_BUILD}" # Next, create the staging area. Make sure that the logs directory # is writeable by everyone because it is likely that we will need to # write into it as root across an NFS link... echo 'Removing old proto-packages and recreating' # Now copy the package description info echo 'Copying package descriptions' # We can't just use `sccs get SCCS' because it will punt if it hits # a file which is being edited (writeable). # See above about sccs usage # 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. if [
"$MACH" =
"sparc" ];
then echo '---Building packages' # Variables to pass to pkgmk for use in prototype files # They must start with lowercase letters to be resolved at pkgmk time echo "******** Making the $package package ********" if [ ! -f prototype_$MACH ]; then ln -s prototype_com prototype_$MACH echo "******** Done Making the $package package ********" # Create an installdir with symlinks to SUNW* pkgs