From 14d482198a8fdd4893a2a2cced2a11ae78a16fc5 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Wed, 1 Feb 2006 15:06:06 +0000
Subject: [PATCH] Business templates contains their own directory. Don't create
 them from inside this directory, but at the immediate parent level.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5500 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/bin/build_bt5_from_cvs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/bin/build_bt5_from_cvs.sh b/product/ERP5/bin/build_bt5_from_cvs.sh
index 67332b4ca5..626e1916da 100755
--- a/product/ERP5/bin/build_bt5_from_cvs.sh
+++ b/product/ERP5/bin/build_bt5_from_cvs.sh
@@ -34,10 +34,10 @@ cd "$LOCALDIR" || cleanup
 cvs -Qz3 "-d$CVSROOT" checkout "$MODULE" || cleanup
 
 # Create one archive for each Business Template
+cd "$LOCALDIR/$MODULE"
 for BT5 in `ls "$LOCALDIR/$MODULE"`; do
   if [ "$BT5" != "CVS" -a -d "$LOCALDIR/$MODULE/$BT5" ]; then
-    cd "$LOCALDIR/$MODULE/$BT5" || cleanup
-    tar -zcf "$LOCALDIR/$BT5.bt5" --exclude CVS --exclude .cvsignore . || cleanup
+    tar -zcf "$LOCALDIR/$BT5.bt5" --exclude CVS --exclude .cvsignore "$BT5" || cleanup
   fi
 done
 
-- 
2.30.9