[Erp5-report] r20713 - /experimental/Experimental/bin/mkbt5

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 21 16:29:05 CEST 2008


Author: luke
Date: Mon Apr 21 16:29:04 2008
New Revision: 20713

URL: http://svn.erp5.org?rev=20713&view=rev
Log:
 - invert check, do not process non-bt5 directories

Modified:
    experimental/Experimental/bin/mkbt5

Modified: experimental/Experimental/bin/mkbt5
URL: http://svn.erp5.org/experimental/Experimental/bin/mkbt5?rev=20713&r1=20712&r2=20713&view=diff
==============================================================================
--- experimental/Experimental/bin/mkbt5 (original)
+++ experimental/Experimental/bin/mkbt5 Mon Apr 21 16:29:04 2008
@@ -6,9 +6,10 @@
 
 for BT5DIR in $* ; do
   BT5DIR=`echo $BT5DIR | sed 's/\/$//g'`
-  if [ ! -f $BT5DIR/bt/revision ] ; then
+  if [ -f $BT5DIR/bt/revision ] ; then
+    btversion=`cat $BT5DIR/bt/version`
+    tar --exclude=.svn -cf - $BT5DIR | gzip -c9 > $BT5DIR-${btversion}.bt5
+  else
     echo "$BT5DIR is not Business Template directory"
   fi
-  btversion=`cat $BT5DIR/bt/version`
-  tar --exclude=.svn -cf - $BT5DIR | gzip -c9 > $BT5DIR-${btversion}.bt5
 done




More information about the Erp5-report mailing list