release script updated
This commit is contained in:
parent
27e54bc50d
commit
0f01c5aa59
25
release.sh
25
release.sh
@ -7,15 +7,15 @@
|
|||||||
# James Turk (jpt2433@rit.edu)
|
# James Turk (jpt2433@rit.edu)
|
||||||
#
|
#
|
||||||
# Version:
|
# Version:
|
||||||
# $Id: release.sh,v 1.2 2005/08/17 17:39:49 cozman Exp $
|
# $Id: release.sh,v 1.3 2005/08/19 05:34:58 cozman Exp $
|
||||||
|
|
||||||
major=0
|
major=0
|
||||||
minor=1
|
minor=0
|
||||||
release=0
|
release=2
|
||||||
suffix="-RC1"
|
suffix=""
|
||||||
|
|
||||||
cvsTag="release-${major}_${minor}_${release}${suffix}"
|
cvsTag="release-${major}_${minor}_${release}${suffix}"
|
||||||
dirName="photon-${major}.${minor}"
|
dirName="photon-${major}.${minor}.${release}" # after 0.1 drop ${release}
|
||||||
srcPkgName="photon-${major}.${minor}.${release}${suffix}-src.tar.bz2"
|
srcPkgName="photon-${major}.${minor}.${release}${suffix}-src.tar.bz2"
|
||||||
|
|
||||||
# procedure to abort on errorcodes
|
# procedure to abort on errorcodes
|
||||||
@ -67,8 +67,7 @@ elif [[ "${1}" = "release" ]]; then
|
|||||||
check_errs $? "Tagging photon in CVS failed"
|
check_errs $? "Tagging photon in CVS failed"
|
||||||
|
|
||||||
echo "Attempting to export ${cvsTag} tagged copy of photon"
|
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} -d ${dirName} photon
|
||||||
cvs -z3 -d:ext:cozman@cvs.sourceforge.net:/cvsroot/photon export -r ${cvsTag} photon
|
|
||||||
check_errs $? "${cvsTag} export failed"
|
check_errs $? "${cvsTag} export failed"
|
||||||
|
|
||||||
cd photon
|
cd photon
|
||||||
@ -78,10 +77,20 @@ elif [[ "${1}" = "release" ]]; then
|
|||||||
check_errs $? "Building photon docs failed, aborting."
|
check_errs $? "Building photon docs failed, aborting."
|
||||||
|
|
||||||
# remove non-essential files
|
# remove non-essential files
|
||||||
|
rm -rf .sconf_temp/
|
||||||
|
rm -rf docs/.cvsignore
|
||||||
|
rm -rf include/.sconsign
|
||||||
|
rm -rf include/*/.sconsign
|
||||||
|
rm -rf include/*/*/.sconsign
|
||||||
|
rm -rf ndoc/
|
||||||
|
rm -rf ndoc/.cvsignore
|
||||||
|
rm -rf .cvsignore
|
||||||
|
rm -rf config.log
|
||||||
|
rm -rf RELEASE-HOWTO.txt
|
||||||
|
rm -rf release.sh
|
||||||
|
|
||||||
# rename directory for packaging
|
# rename directory for packaging
|
||||||
cd ..
|
cd ..
|
||||||
mv photon ${dirName}
|
|
||||||
tar cjf ${srcPkgName} ${dirName}/
|
tar cjf ${srcPkgName} ${dirName}/
|
||||||
check_errs $? "Failed to create source package."
|
check_errs $? "Failed to create source package."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user