[pLog-svn] r3285 - plog/trunk/bin-devel

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Apr 27 14:42:10 GMT 2006


Author: oscar
Date: 2006-04-27 14:42:09 +0000 (Thu, 27 Apr 2006)
New Revision: 3285

Removed:
   plog/trunk/bin-devel/build.sh
Modified:
   plog/trunk/bin-devel/build-svn.sh
Log:
removed the old build.sh because it was only meant to be used with sf.net, and a couple more changes to the new build-svn.sh


Modified: plog/trunk/bin-devel/build-svn.sh
===================================================================
--- plog/trunk/bin-devel/build-svn.sh	2006-04-27 14:33:00 UTC (rev 3284)
+++ plog/trunk/bin-devel/build-svn.sh	2006-04-27 14:42:09 UTC (rev 3285)
@@ -57,7 +57,9 @@
     echo ""
 	echo "Usage: build-svn.sh label package-name"
 	echo ""
-	echo "If package-name is omitted, the name will plog-devel-current_date"
+	echo "If package-name is omitted, the name will lifetype-devel-current_date"
+	echo ""
+	echo "Use HEAD or TRUNK to indicate the main development branch"
 	exit -1
 fi
 
@@ -65,7 +67,7 @@
 
 # if there was no package name parameter, then build one using the current date
 if [ $# -eq 1 ]; then
-    PACKAGENAME=plog-devel-`date +%Y%m%d`
+    PACKAGENAME=lifetype-devel-`date +%Y%m%d`
 else
     PACKAGENAME=$2
 fi
@@ -76,7 +78,7 @@
 
 # determine whether code should be fetched from 
 # plog/trunk or plog/tags/xxxx
-if [ $SVNTAG == "HEAD" ]; then
+if [ $SVNTAG == "HEAD" -o $SVNTAG == "TRUNK" -o $SVNTAG == "head" -o $SVNTAG == "trunk" ]; then
    SVNREPO=${SVNREPO}/trunk
 else
    SVNREPO=${SVNREPO}/tags/${SVNTAG}

Deleted: plog/trunk/bin-devel/build.sh
===================================================================
--- plog/trunk/bin-devel/build.sh	2006-04-27 14:33:00 UTC (rev 3284)
+++ plog/trunk/bin-devel/build.sh	2006-04-27 14:42:09 UTC (rev 3285)
@@ -1,127 +0,0 @@
-#!/bin/sh
-
-#
-# Script to generate distribution builds of pLog
-#
-# (c) 27-08-2003, the pLog Team
-#
-#
-# Requires two parameters: the name of the output package and the
-# CVS tag label that will be used to fetch the contents of the build. Therefore,
-# contents must be tagged _before_ running this script. 
-# The same CVS label must be used for both the plog_devel and plog_docs module.
-#
-
-#
-# change this if used by another user
-#
-CVSUSER="phunkphorce"
-
-#
-# array with the files that we are going to remove before
-# making the package... Wildcards, complete paths, whatever
-# can be used here
-#
-TOREMOVE="include_files release/ templates/grey-sf/ templates/default bin-devel/ docs-devel/ Doxyfile* class/database/adodb/drivers/adodb-access.inc.php class/database/adodb/drivers/adodb-ado_access.inc.php class/database/adodb/drivers/adodb-ado_mssql.inc.php class/database/adodb/drivers/adodb-borland_ibase.inc.php class/database/adodb/drivers/adodb-csv.inc.php class/database/adodb/drivers/adodb-db2.inc.php class/database/adodb/drivers/adodb-fbsql.inc.php class/database/adodb/drivers/adodb-firebird.inc.php class/database/adodb/drivers/adodb-ibase.inc.php class/database/adodb/drivers/adodb-informix.inc.php class/database/adodb/drivers/adodb-informix72.inc.php class/database/adodb/drivers/adodb-mssql.inc.php class/database/adodb/drivers/adodb-mssqlpo.inc.php class/database/adodb/drivers/adodb-oci8.inc.php class/database/adodb/drivers/adodb-oci8po.inc.php class/database/adodb/drivers/adodb-oci805.inc.php class/database/adodb/drivers/adodb-odbc_mssql.inc.php class/database/adodb/drivers/adodb-odbc_oracle.inc.php class/database/adodb/drivers/adodb-odbc.inc.php class/database/adodb/drivers/adodb-oracle.inc.php class/database/adodb/drivers/adodb-postgres.inc.php class/database/adodb/drivers/adodb-postgres7.inc.php class/database/adodb/drivers/adodb-postgres64.inc.php class/database/adodb/drivers/adodb-proxy.inc.php class/database/adodb/drivers/adodb-sapdb.inc.php class/database/adodb/drivers/adodb-sqlanywhere.inc.php class/database/adodb/drivers/adodb-sqlite.inc.php class/database/adodb/drivers/adodb-sybase.inc.php class/database/adodb/drivers/adodb-vfp.inc.php class/database/adodb/lang/adodb-ca.inc.php class/database/adodb/lang/adodb-cn.inc.php class/database/adodb/lang/adodb-cz.inc.php class/database/adodb/lang/adodb-de.inc.php class/database/adodb/lang/adodb-es.inc.php class/database/adodb/lang/adodb-fr.inc.php class/database/adodb/lang/adodb-it.inc.php class/database/adodb/lang/adodb-pt-br.inc.php class/database/adodb/lang/adodb-ru1251.inc.php class/database/adodb/lang/adodb-sv.inc.php class/database/adodb/perf/perf-db2.inc.php class/database/adodb/perf/perf-informix.inc.php class/database/adodb/perf/perf-mssql.inc.php class/database/adodb/perf/perf-oci8.inc.php class/database/adodb/perf/perf-postgres.inc.php class/database/adodb/session/ class/gallery/getid3/module.archive.rar.php class/gallery/getid3/module.archive.szip.php class/gallery/getid3/module.audio-video.bink.php class/gallery/getid3/module.audio-video.matroska.php class/gallery/getid3/module.audio-video.nsv.php class/gallery/getid3/module.audio.avr.php class/gallery/getid3/module.audio.bonk.php class/gallery/getid3/module.audio.la.php class/gallery/getid3/module.audio.lpac.php class/gallery/getid3/module.audio.monkey.php class/gallery/getid3/module.audio.optimfrog.php class/gallery/getid3/module.audio.rkau.php class/gallery/getid3/module.audio.shorten.php class/gallery/getid3/module.audio.tta.php class/gallery/getid3/module.audio.voc.php class/gallery/getid3/module.audio.vqf.php class/gallery/getid3/module.graphic.bmp.php class/gallery/getid3/module.graphpc.pcd.php class/gallery/getid3/module.misc.exe.php class/gallery/getid3/module.misc.iso.php"
-
-#
-# helper functions to print things in different colors
-#
-NOCOLOR='\e[0m'
-message()
-{
- echo -e "\033[01;32m$*$NOCOLOR"
-}
-
-warning()
-{
- echo -e "\033[01;33m$*$NOCOLOR"
-}
-
-error()
-{
- echo -e "\033[01;31m$*$NOCOLOR"
-}
-
-cleanup_exit()
-{
-	rm -rf $WORKDIR
-	rm -rf $WORKDIR-docs
-	exit $1
-}
-
-# check parameters
-if [ $# -lt 2 ]; then
-	echo "Usage: build.sh cvs-label build-name"
-	exit -1
-fi
-
-WORKDIR=$2
-BUILDLABEL=$2
-# check if the temporary folder is available
-#if [ -d $WORKDIR ]; then
-#	error "Please remove the $WORKDIR folder before continuing."
-#	exit -1;
-#fi
-
-# get the parameters
-CVSTAG=$1
-
-# if it is, create the folders
-#mkdir $WORKDIR
-
-# call the cvs command with the correct parameters
-message "Fetching the source code using $CVSTAG label..."
-warning "(Enter your password when prompted)"
-cvs -d:ext:$CVSUSER at cvs.sourceforge.net:/cvsroot/plog checkout -r $CVSTAG -d "$WORKDIR" plog 
-#cvs -d:ext:$CVSUSER at cvs.sourceforge.net:/cvsroot/plog checkout -r $CVSTAG -d $WORKDIR plog
-
-# create the temp folder and give proper permissions to it
-message "Creating the temporary folders and setting permissions to 777..."
-if [ \! -d $WORKDIR/tmp ]; then
-	mkdir $WORKDIR/tmp
-fi
-chmod 777 $WORKDIR/tmp
-
-# create the gallery/ folder and make sure that it has the right permissions
-message "Creating the gallery/ folder and setting permissions to 777..."
-if [ \! -d $WORKDIR/gallery ]; then
-	mkdir $WORKDIR/gallery
-fi
-chmod 777 $WORKDIR/gallery
-
-# copy the generic config file and remove the dist/ folder since it is not needed
-message "Copying the generic config.properties.file..."
-cp -f $WORKDIR/release/config.properties.php.dist $WORKDIR/config/config.properties.php
-rm -rf $WORKDIR/dist
-
-# finally, update the version.php file
-message "Updating the version.php file..."
-echo "<?php" > $WORKDIR/version.php
-echo "\$version = \"$CVSTAG\";" >> $WORKDIR/version.php
-echo "?>" >> $WORKDIR/version.php
-
-# remove all the annoying CVS/ folders
-message "Removing unneeded CVS folders..."
-find $WORKDIR/ -name "CVS" -exec rm -rf '{}' \; >& /dev/null
-
-# and remove all unnecessary files
-message "Removing unnecessary files...";
-for i in $TOREMOVE
-do
-  message "  -- removing $i"
-  rm -rf $WORKDIR/$i
-done
-
-# and create the tar.gz and .tar.bz2 packages
-message "Creating .tar.gz package..."
-tar czvf $BUILDLABEL.tar.gz $WORKDIR > /dev/null
-message "Creating .tar.bz2 package..."
-tar cjvf $BUILDLABEL.tar.bz2 $WORKDIR > /dev/null
-
-# clean up the temporary folders
-message "Cleaning up..."
-cleanup_exit -1
-
-# done!
-message "Done!"



More information about the pLog-svn mailing list