[Linpha-cvs] SF.net SVN: linpha: [4810] trunk/misc
Status: Inactive
Brought to you by:
bzrudi
From: <fan...@us...> - 2008-01-15 21:11:47
|
Revision: 4810 http://linpha.svn.sourceforge.net/linpha/?rev=4810&view=rev Author: fangehrn Date: 2008-01-15 13:10:43 -0800 (Tue, 15 Jan 2008) Log Message: ----------- Added Paths: ----------- trunk/misc/.project trunk/misc/design/ trunk/misc/make_release.sh Added: trunk/misc/.project =================================================================== --- trunk/misc/.project (rev 0) +++ trunk/misc/.project 2008-01-15 21:10:43 UTC (rev 4810) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>linpha_misc</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>net.sourceforge.phpeclipse.parserbuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>net.sourceforge.phpeclipse.phpnature</nature> + </natures> +</projectDescription> Added: trunk/misc/make_release.sh =================================================================== --- trunk/misc/make_release.sh (rev 0) +++ trunk/misc/make_release.sh 2008-01-15 21:10:43 UTC (rev 4810) @@ -0,0 +1,151 @@ +#!/bin/sh +############################################################################ +## Export LinPHA from CVS, remove unwated files, do cleanups, make archives +## (tar.gz/tar.bz2/zip) and finally upload them to SF +## version 0.6.0 09. Aug. 2004 +## copyright bzrudi71 +## License GPL +############################################################################ + +TMP_DIR="~/tmp/linpha" +VERSION="1.1.0" # releae name (linpha-VERSION.xyz) +DO_DISTRI="1" # create tar.gz/tar.bz2/zip archives +#DO_UPLOAD="1" # ftp releases to SF +ARCHIVE_PATH="./archives/"; # where to store the archives bz2,gz,zip +AUTOCLEAN="0" # cleanup all tmp files by default + + +cd $TMP_DIR + +### here we go... ### +echo "BUILDING LinPHA RELEASE $VERSION" +echo -n "cleaning up..." +if [ -d linpha-$VERSION/ ] ;then + rm -rf ./linpha-$VERSION/ + rm -rf $ARCHIVE_PATH + echo " DONE!" + sleep 1s +fi + +echo "Getting LinPHA CVS (export)..." +export CVS_RSH=ssh +cvs -d:ext:fan...@cv...:/cvsroot/linpha export -D today linpha + +mv linpha linpha-$VERSION +if [ -d linpha-$VERSION/ ] ;then # export OK! + + sleep 2s + echo "Cleaning up LinPHA..." + + # change error:reporting in header.php + echo -n "Setting error_reporting => OFF in header.php..." + if [ -e linpha-$VERSION/header.php ] ;then + sed -e "s/E_ALL/1/" linpha-$VERSION/header.php > dummy.header + if [ -e dummy.header ] ;then + mv dummy.header linpha-$VERSION/header.php + echo " DONE!" + else + echo " Patching failed for some reason" + fi + fi + # remove langupdate.php + echo -n "Removing langupdate.php..." + if [ -e linpha-$VERSION/lang/langupdate.php ] ;then + rm linpha-$VERSION/lang/langupdate.php + echo " DONE!" + else + echo " FAILED (or already removed)" + fi + + # remove cronOthumb.php + echo -n "Removing cronOthumb.php.php..." + if [ -e linpha-$VERSION/cronOthumb.php ] ;then + rm linpha-$VERSION/cronOthumb.php + echo " DONE!" + else + echo " FAILED (or already removed)" + fi + + # run some changemods + echo "Changemodding some files:" + if [ -e linpha-$VERSION/search.php ] ;then + chmod 644 linpha-$VERSION/search.php + echo "... search.php DONE!"; + else + echo "... changemodding search.php FAILED!" + fi + + if [ -e linpha-$VERSION/styles/aqua.css ] ;then + chmod 644 linpha-$VERSION/styles/aqua.css + echo "... aqua.css DONE!"; + else + echo "... changemodding aqua.css FAILED!" + fi + + if [ -e linpha-$VERSION/styles/colored.css ] ;then + chmod 644 linpha-$VERSION/styles/colored.css + echo "... colored.css DONE!"; + else + echo "... changemodding colored.css FAILED!" + fi + + if [ -e linpha-$VERSION/styles/shadow.css ] ;then + chmod 644 linpha-$VERSION/styles/shadow.css + echo "... shadow.css DONE!"; + else + echo "... changemodding shadow.css FAILED!" + fi + + if [ -d linpha-$VERSION/sql ] ;then + chmod 777 linpha-$VERSION/sql + echo "... sql directory DONE!"; + else + echo "... changemodding sql directory FAILED!" + fi + + sleep 3s + + echo "Building all Archives..." + echo -n "Creating $ARCHIVE_PATH directory..." + mkdir $ARCHIVE_PATH + if [ -d $ARCHIVE_PATH ] ;then + echo " DONE!" + else + echo " FAILED!" + fi + sleep 2s + + ##### tar.gz ##### + echo "Creating linpha-$VERSION.tar.gz" + tar --create --file=$ARCHIVE_PATH/linpha-$VERSION.tar ./linpha-$VERSION + gzip -f $ARCHIVE_PATH/linpha-$VERSION.tar + if [ -e $ARCHIVE_PATH/linpha-$VERSION.tar.gz ] ;then + echo "OK linpha-$VERSION.tar.gz created..." + else + echo "FAILED" + fi + + ##### tar.bz2 ##### + echo "Creating linpha-$VERSION.tar.bz2" + tar --create --file=$ARCHIVE_PATH/linpha-$VERSION.tar ./linpha-$VERSION + bzip2 -f $ARCHIVE_PATH/linpha-$VERSION.tar + if [ -e $ARCHIVE_PATH/linpha-$VERSION.tar.bz2 ] ;then + echo "OK linpha-$VERSION.tar.bz2 created..." + else + echo "FAILED" + fi + + ##### zip ##### + echo "Creating linpha-$VERSION.zip" + zip -rq $ARCHIVE_PATH/linpha-$VERSION.zip ./linpha-$VERSION/ + if [ -e $ARCHIVE_PATH/linpha-$VERSION.zip ] ;then + echo "OK linpha-$VERSION.zip created..." + else + echo "FAILED" + fi + +else + echo "CVS checkout went wrong!, retry later" +fi + +echo "WOW! just another new release is ready to hit the masses :-))!" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |