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

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Mar 2 08:36:30 GMT 2005


Author: oscar
Date: 2005-03-02 08:36:30 +0000 (Wed, 02 Mar 2005)
New Revision: 1278

Modified:
   plog/trunk/bin-devel/build-plugins.sh
   plog/trunk/bin-devel/build-templates.sh
Log:
now the .svn/ folders will also be removed from the templates and plugins packages. It is also now possible to
remove certain folders from the final packages (such as remove certain plugins that have not been ported yet)


Modified: plog/trunk/bin-devel/build-plugins.sh
===================================================================
--- plog/trunk/bin-devel/build-plugins.sh	2005-03-02 08:04:52 UTC (rev 1277)
+++ plog/trunk/bin-devel/build-plugins.sh	2005-03-02 08:36:30 UTC (rev 1278)
@@ -7,6 +7,12 @@
 SVNREPO=/svn/plog/plugins/trunk
 
 #
+# 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"
+
+#
 # helper functions to print things in different colors
 #
 NOCOLOR='\e[0m'
@@ -64,6 +70,18 @@
     exit 1
 fi
 
+# remove all the annoying SVN/ folders
+message "Removing unneeded SVN folders..."
+find $WORKDIR/ -name ".svn" -exec rm -rf '{}' \; >& /dev/null
+
+# and remove all unnecessary files
+message "Removing unnecessary files...";
+for i in $DONOTINCLUDE
+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

Modified: plog/trunk/bin-devel/build-templates.sh
===================================================================
--- plog/trunk/bin-devel/build-templates.sh	2005-03-02 08:04:52 UTC (rev 1277)
+++ plog/trunk/bin-devel/build-templates.sh	2005-03-02 08:36:30 UTC (rev 1278)
@@ -7,6 +7,12 @@
 SVNREPO=/svn/plog/templates/trunk
 
 #
+# folders that should not be included. Please add here any template set that should be removed from
+# the final package!
+#
+DONOTINCLUDE=""
+
+#
 # helper functions to print things in different colors
 #
 NOCOLOR='\e[0m'
@@ -64,6 +70,18 @@
     exit 1
 fi
 
+# remove all the annoying SVN/ folders
+message "Removing unneeded SVN folders..."
+find $WORKDIR/ -name ".svn" -exec rm -rf '{}' \; >& /dev/null
+
+# and remove all unnecessary files
+message "Removing unnecessary files...";
+for i in $DONOTINCLUDE
+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




More information about the pLog-svn mailing list