make_release_packages revision 38
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# Permission is hereby granted, free of charge, to any person obtaining a
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# copy of this software and associated documentation files (the
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# "Software"), to deal in the Software without restriction, including
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# without limitation the rights to use, copy, modify, merge, publish,
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# distribute, and/or sell copies of the Software, and to permit persons
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# to whom the Software is furnished to do so, provided that the above
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# copyright notice(s) and this permission notice appear in all copies of
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# the Software and that both the above copyright notice(s) and this
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# permission notice appear in supporting documentation.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# Except as contained in this notice, the name of a copyright holder
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# shall not be used in advertising or otherwise to promote the sale, use
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# or other dealings in this Software without prior written authorization
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# of the copyright holder.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# @(#)make_release_packages 1.44 06/29/06 06/06/29
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# Create and fill a package staging area for X
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# This script should be run from the base of the build tree.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# It takes no parameters.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# ./make_release_packages
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# To build a subset of packages
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# env PACKAGE_LIST="packages" ./make_release_packages
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# Make sure that we aren't affected by the personal environment of
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# whoever is running this script
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsyncPATH=/opt/SUNWspro/bin:/opt/SUNWguide/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:.
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# List of official (deliverable) X-window packages
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsyncXW_PACKAGE_LIST="SUNWxwcft SUNWxwdem SUNWxwdim SUNWxwfs SUNWxwinc \
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync SUNWxwice SUNWxwopt SUNWxwpmn SUNWxwsrc SUNWxwacx SUNWxwdxm \
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync SUNWxwhl SUNWi1of SUNWxwfa SUNWxwpft SUNWxwsrv SUNWxwoft \
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync SUNWfontconfig SUNWfontconfig-root SUNWfontconfig-docs SUNWxwsvr \
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync SUNWxscreensaver-hacks SUNWfreetype2 SUNWxwxft SUNWxwfsw \
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync SUNWxprint-server"
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# L10N packages are normally only built on sparc since they only have text
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# files that are the same for both platforms
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync XW_L10N_PACKAGES="SUNW0xacx SUNW0xman SUNW0xpmn SUNW0xwfa SUNW0xwplt \
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync SUNW0xwopt SUNW0xwsvr"
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync# Which platform name do we use for 64-bit?
61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4ccvboxsync echo "Unknown architecture - not SPARC nor i386."
SUNWxsun-server SUNWxsun-keytables $TSOL_PACKAGE"
if [ -f pkgversion ] ; then
echo "Error: $SOURCEDIR/packages/pkgversion not found. Cannot continue."
echo "VERSION not set in $SOURCEDIR/packages/pkgversion - run newPkRev"
echo "BUILD not set in $SOURCEDIR/packages/pkgversion - run newPkRev"
cd $package
# Packages that need additional copyright have copyright.add files
if [ -f copyright.add ] ; then
cd $PACKAGE_DIR
cd $package
echo "******** Making the $package package ********"
cat pkginfo.tmpl | sed -e '/ARCH/s/ISA/'$MACH'/' -e 's/SUNW_PRODVERS=.*$/SUNW_PRODVERS='${VERSION}/ -e 's/VERSION=.*$/VERSION='${VERSION}.${BUILD},REV=${DATE}/ > pkginfo
if [ -f Makefile ]; then
eval "case $package in
if [ ! -f prototype_$MACH ]; then
ln -s prototype_com prototype_$MACH
echo /usr/bin/pkgmk -d $PACKAGE_DIR/$package -o ${PKGMK_VARS}
/usr/bin/pkgmk -d $PACKAGE_DIR/$package -o ${PKGMK_VARS}
echo "******** Done Making the $package package ********"
cd $PACKAGE_DIR
cd installdir