[pLog-svn] r3625 - plog/trunk/bin-devel
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Tue Jun 20 14:40:55 GMT 2006
Author: oscar
Date: 2006-06-20 14:40:55 +0000 (Tue, 20 Jun 2006)
New Revision: 3625
Added:
plog/trunk/bin-devel/build-plugins-nightly.sh
Modified:
plog/trunk/bin-devel/build-plugins.sh
Log:
plugins are now included in the nightly builds too
Added: plog/trunk/bin-devel/build-plugins-nightly.sh
===================================================================
--- plog/trunk/bin-devel/build-plugins-nightly.sh 2006-06-20 14:15:11 UTC (rev 3624)
+++ plog/trunk/bin-devel/build-plugins-nightly.sh 2006-06-20 14:40:55 UTC (rev 3625)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# check parameters
+if [ $# -lt 2 ]; then
+ echo "Generates a build of all plugins and moves it to the specified folder"
+ echo ""
+ echo "Usage: build-plugins-nightly.sh label destination-folder"
+ echo ""
+ exit -1
+fi
+
+echo "*** Build plugins: starting process ***"
+date
+echo "***"
+
+SVNTAG=$1
+DESTFOLDER=$2
+BINPATH=/home/oscar/plog-devel/bin-devel
+
+pwd
+echo $DESTFOLDER
+echo $SVNTAG
+
+# make the package
+cd $BINPATH
+$BINPATH/build-plugins.sh $SVNTAG
+
+# move the file to the destination folder
+PACKAGENAME=lifetype-plugins-`date +%Y%m%d`
+mv -f $BINPATH/$PACKAGENAME.zip $DESTFOLDER
+
+# remove everything else
+rm -f $BINPATH/$PACKAGENAME.zip
+rm -f $BINPATH/$PACKAGENAME.tar.gz
+rm -f $BINPATH/$PACKAGENAME.tar.bz2
+
+# make the softlink
+rm $DESTFOLDER/lifetype-plugins-latest.zip
+ln -s $DESTFOLDER/$PACKAGENAME.zip $DESTFOLDER/lifetype-plugins-latest.zip
+
+echo "*** Build: Nightly build complete!"
+echo "*** Build: build result available in $DESTFOLDER/$PACKAGENAME.zip"
Property changes on: plog/trunk/bin-devel/build-plugins-nightly.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: plog/trunk/bin-devel/build-plugins.sh
===================================================================
--- plog/trunk/bin-devel/build-plugins.sh 2006-06-20 14:15:11 UTC (rev 3624)
+++ plog/trunk/bin-devel/build-plugins.sh 2006-06-20 14:40:55 UTC (rev 3625)
@@ -3,14 +3,14 @@
#
# server and repository path
#
-SVNSERVER=http://devel.plogworld.net
-SVNREPO=/svn/plog/plugins/trunk
+SVNSERVER=http://devel.lifetype.net
+SVNREPO=/svn/plog/plugins/
#
# folders that should not be included. Please add here any plugin that should be removed from
# the final package!
#
-DONOTINCLUDE="authentication backup bestpost blogstatistics emailencryption galleryimages google haiku jsdictionary whooline"
+DONOTINCLUDE="bin/ unported/"
#
# helper functions to print things in different colors
@@ -52,7 +52,7 @@
# if there was no package name parameter, then build one using the current date
if [ $# -eq 1 ]; then
- PACKAGENAME=plog-plugins-`date +%Y%m%d`
+ PACKAGENAME=lifetype-plugins-`date +%Y%m%d`
else
PACKAGENAME=$2
fi
@@ -63,7 +63,7 @@
# call the cvs command with the correct parameters
message "Fetching the templates using $SVNTAG label..."
-svn checkout $SVNSERVER$SVNREPO -r $SVNTAG $WORKDIR
+svn checkout $SVNSERVER$SVNREPO/$SVNTAG $WORKDIR
if [ $? -eq 1 ]; then
echo "There was an error fetching the plugins source code. Please try again."
@@ -83,6 +83,8 @@
done
# and create the tar.gz and .tar.bz2 packages
+message "Creating .zip package..."
+zip -r $BUILDLABEL.zip $WORKDIR > /dev/null
message "Creating .tar.gz package..."
tar czvf $BUILDLABEL.tar.gz $WORKDIR > /dev/null
message "Creating .tar.bz2 package..."
@@ -95,4 +97,4 @@
message "Done!"
-cleanup_exit -1
\ No newline at end of file
+cleanup_exit -1
More information about the pLog-svn
mailing list