prepped for auto-release test
This commit is contained in:
parent
033a10c67f
commit
c7dd7f80a2
@ -10,7 +10,7 @@ In addition, I'd like to thank:
|
||||
without ZEngine, no photon)
|
||||
* The GameDev.net community for answering my (often complex) questions
|
||||
* Richard 'Superpig' Fine for his Enginuity articles, which influenced my
|
||||
Kernel/Task design.
|
||||
TaskManager/Task design.
|
||||
* Jesse Maurais and DevMaster.net for the OpenAL tutorials
|
||||
* Everyone responsible for FreeMind (http://freemind.sf.net)
|
||||
* The Ubuntu Team (http://ubuntulinux.com)
|
||||
@ -18,4 +18,4 @@ In addition, I'd like to thank:
|
||||
algorithm, and making it freely available.
|
||||
http://www.math.keio.ac.jp/~matumoto/emt.html
|
||||
|
||||
$Id: CREDITS.txt,v 1.2 2005/07/19 18:35:20 cozman Exp $
|
||||
$Id: CREDITS.txt,v 1.3 2005/08/17 17:39:49 cozman Exp $
|
||||
|
@ -6,8 +6,8 @@ Process:
|
||||
human: sanity check tests
|
||||
human: sanity check docs
|
||||
human: check building on Windows
|
||||
script: tag CVS with version number
|
||||
script: CVS export `cvs -z3 -d:ext:cozman@cvs.sourceforge.net:/cvsroot/photon export -r release-VERSION photon`
|
||||
script: tag CVS with version number `cvs rtag release-MAJOR_MINOR_RELEASE photon`
|
||||
script: fresh CVS export `cvs -z3 -d:ext:cozman@cvs.sourceforge.net:/cvsroot/photon export -r release-MAJOR_MINOR_RELEASE photon`
|
||||
script: build docs with `scons docs`
|
||||
script: remove non-distribution files**
|
||||
script: rename directory to photon-MAJOR.MINOR
|
||||
@ -26,6 +26,6 @@ Process:
|
||||
**Non-Distribution Files:
|
||||
photon/.cvsignore
|
||||
photon/docs/.cvsignore
|
||||
photon/ndoc/.cvsignore
|
||||
photon/ndoc/
|
||||
|
||||
$Id: RELEASE-HOWTO.txt,v 1.4 2005/08/17 06:35:54 cozman Exp $
|
||||
$Id: RELEASE-HOWTO.txt,v 1.5 2005/08/17 17:39:49 cozman Exp $
|
||||
|
55
release.sh
55
release.sh
@ -1,7 +1,24 @@
|
||||
# Photon release script
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# This file is part of Photon (http://photon.sourceforge.net)
|
||||
# Copyright (C) 2004-2005 James Turk
|
||||
#
|
||||
# Author:
|
||||
# James Turk (jpt2433@rit.edu)
|
||||
#
|
||||
# Version:
|
||||
# $Id: release.sh,v 1.2 2005/08/17 17:39:49 cozman Exp $
|
||||
|
||||
major=0
|
||||
minor=1
|
||||
release=0
|
||||
suffix="-RC1"
|
||||
|
||||
cvsTag="release-${major}_${minor}_${release}${suffix}"
|
||||
dirName="photon-${major}.${minor}"
|
||||
srcPkgName="photon-${major}.${minor}.${release}${suffix}-src.tar.bz2"
|
||||
|
||||
# procedure to abort on errorcodes
|
||||
check_errs()
|
||||
{
|
||||
# Parameter 1 is the return code
|
||||
@ -17,6 +34,7 @@ check_errs()
|
||||
if [[ "${1}" = "pre" ]]; then
|
||||
# first checkout a fresh copy from CVS
|
||||
echo "Attempting to check fresh copy of photon out from CVS..."
|
||||
rm -rf ./photon
|
||||
cvs -z3 -d:ext:cozman@cvs.sourceforge.net:/cvsroot/photon co -P photon
|
||||
check_errs $? "Obtaining photon via CVS failed"
|
||||
|
||||
@ -35,8 +53,39 @@ if [[ "${1}" = "pre" ]]; then
|
||||
echo "\nTime for some sanity checks, then run release.sh"
|
||||
|
||||
elif [[ "${1}" = "release" ]]; then
|
||||
echo "release mode not implemented"
|
||||
# first checkout a fresh copy from CVS
|
||||
echo "Attempting to check fresh copy of photon out from CVS..."
|
||||
rm -rf ./photon
|
||||
cvs -z3 -d:ext:cozman@cvs.sourceforge.net:/cvsroot/photon co -P photon
|
||||
check_errs $? "Obtaining photon via CVS failed"
|
||||
|
||||
cd photon
|
||||
check_errs $? "No photon directory?! Cannot proceed."
|
||||
|
||||
echo "Tagging current CVS as ${cvsTag}"
|
||||
cvs rtag ${cvsTag} photon
|
||||
check_errs $? "Tagging photon in CVS failed"
|
||||
|
||||
echo "Attempting to export ${cvsTag} tagged copy of photon"
|
||||
rm -rf ./photon
|
||||
cvs -z3 -d:ext:cozman@cvs.sourceforge.net:/cvsroot/photon export -r ${cvsTag} photon
|
||||
check_errs $? "${cvsTag} export failed"
|
||||
|
||||
cd photon
|
||||
check_errs $? "No photon directory?! Cannot proceed."
|
||||
|
||||
scons docs
|
||||
check_errs $? "Building photon docs failed, aborting."
|
||||
|
||||
# remove non-essential files
|
||||
|
||||
# rename directory for packaging
|
||||
cd ..
|
||||
mv photon ${dirName}
|
||||
tar cjf ${srcPkgName} ${dirName}/
|
||||
check_errs $? "Failed to create source package."
|
||||
|
||||
echo "Automated portion of release complete, put it up on sourceforge and relax."
|
||||
else
|
||||
echo "Usage: ./release.sh {pre|release}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user