mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
Changes to the Solaris build scripts..
This commit is contained in:
parent
1cd69be223
commit
9563aec49b
1 changed files with 22 additions and 6 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
# Solaris tuff
|
||||
|
||||
# Source directory
|
||||
MOUNT_DIR="../../.."
|
||||
|
||||
# Solaris stuff
|
||||
PLATFORM=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'`
|
||||
if [ "X`uname -m`" = "Xi386" ]; then
|
||||
ARCH=i386
|
||||
|
@ -11,14 +15,19 @@ fi
|
|||
PKG_SOLARIS_NAME=ioquake3
|
||||
PKG_DATA_NAME=ioquake3d
|
||||
BUILD_DATE="`/usr/bin/date '+%Y%m%d%H%M%S'`"
|
||||
BUILD_VERSION="1.34-rSVN"
|
||||
SVNVERSION=/usr/local/bin/svnversion
|
||||
if [ -x /usr/local/bin/svnversion ]; then
|
||||
SVN_BANNER=`/usr/local/bin/svnversion ${MOUNT_DIR}|sed -e 's/S$//' -e 's/M$//' `
|
||||
BUILD_VERSION="1.34-r${SVN_BANNER}"
|
||||
else
|
||||
BUILD_VERSION="1.34-rSVN"
|
||||
fi
|
||||
PKG_VERSION="`date '+%Y%m%d%H%M'`"
|
||||
PKG_MAINT_ID="quake@cojot.name"
|
||||
SOLARIS_PKGFILE="${PKG_SOLARIS_NAME}-${BUILD_VERSION}-${PKG_VERSION}-${ARCH}.pkg"
|
||||
DATA_PKGFILE="${PKG_DATA_NAME}-${BUILD_VERSION}-${PKG_VERSION}-${ARCH}.pkg"
|
||||
|
||||
# Locations
|
||||
MOUNT_DIR="../../.."
|
||||
# build directories
|
||||
BUILD_DIR="${MOUNT_DIR}/build/release-${PLATFORM}-${ARCH}"
|
||||
PKG_SRC_DIR="${MOUNT_DIR}/code/unix/setup/pkg/${PKG_SOLARIS_NAME}"
|
||||
PKG_BUILD_DIR="/tmp/ioquake3-build/${PKG_SOLARIS_NAME}-${BUILD_VERSION}"
|
||||
|
@ -101,8 +110,15 @@ if [ -d ${BUILD_DIR} ]; then
|
|||
> ${PKG_DATA_SRC_DIR}/pkginfo
|
||||
${CAT} ${PKG_DATA_SRC_DIR}/prototype.template > ${PKG_DATA_SRC_DIR}/prototype
|
||||
|
||||
if [ -f ${MOUNT_DIR}/../../webspace/include/id_patch_pk3s_Q3A_EULA.txt ]; then
|
||||
${INSTALL_DATA} ${MOUNT_DIR}/../../webspace/include/id_patch_pk3s_Q3A_EULA.txt ${PKG_DATA_SRC_DIR}/copyright
|
||||
if [ -d ${MOUNT_DIR}/../webspace/include ]; then
|
||||
EULA_DIR=${MOUNT_DIR}/../webspace/include
|
||||
else
|
||||
if [ -d ${MOUNT_DIR}/../../webspace/include ]; then
|
||||
EULA_DIR=${MOUNT_DIR}/../../webspace/include
|
||||
fi
|
||||
fi
|
||||
if [ -f ${EULA_DIR}/id_patch_pk3s_Q3A_EULA.txt ]; then
|
||||
${INSTALL_DATA} ${EULA_DIR}/id_patch_pk3s_Q3A_EULA.txt ${PKG_DATA_SRC_DIR}/copyright
|
||||
fi
|
||||
|
||||
${PKGPROTO} ${PKG_DATA_BUILD_DIR}=quake3 | \
|
||||
|
|
Loading…
Reference in a new issue