[pLog-svn] r3847 - plugins/branches/lifetype-1.0/bin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Tue Aug 8 21:09:18 GMT 2006


Author: oscar
Date: 2006-08-08 21:09:18 +0000 (Tue, 08 Aug 2006)
New Revision: 3847

Modified:
   plugins/branches/lifetype-1.0/bin/build.sh
Log:
some plugins need extra files in addition that whatever is in the plugin folder (karma plugin, moblog plugin, etc) so now the build.sh script knows about these plugins and will work as expected. The solution is not very scalable but it will be enough while we think of something else.


Modified: plugins/branches/lifetype-1.0/bin/build.sh
===================================================================
--- plugins/branches/lifetype-1.0/bin/build.sh	2006-08-08 20:36:02 UTC (rev 3846)
+++ plugins/branches/lifetype-1.0/bin/build.sh	2006-08-08 21:09:18 UTC (rev 3847)
@@ -19,6 +19,11 @@
 SVNREPO=/svn/plog/plugins/branches/lifetype-1.0
 
 #
+# save the current folder
+#
+CWD=`pwd`
+
+#
 # array with the files that we are going to remove before
 # making the package... Wildcards, complete paths, whatever
 # can be used here
@@ -89,7 +94,30 @@
     TEMPLATENAME=_all_plugins
     zip -qr ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip .
 else
-    zip -r ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip ${TEMPLATENAME}/
+	
+	#
+	# some plugins have special requirements... This is not very scalable and needs to be
+	# modified every time one of these plugins is added, but this will have to do for
+	# the time being
+	#
+	case $TEMPLATENAME in
+		karma)
+			FILES="karma.php $TEMPLATENAME"
+			;;
+		moblog)
+			FILES="moblog.php moblogbatch.php $TEMPLATENAME"
+			;;
+		atom)
+			FILES="atom.php $TEMPLATENAME"
+			;;
+		mobile)
+			FILES="mobile.php $TEMPLATENAME"
+			;;		
+		*)
+			FILES="$TEMPLATENAME"
+	esac
+			
+	zip -r ${CURFOLDER}/${VERSION}_${TEMPLATENAME}.zip $FILES
 fi
 
 if [ "x$DONT_UPLOAD" == "x" ]; then



More information about the pLog-svn mailing list