Correct sync script.
authorymh <ymh.work@gmail.com>
Wed, 28 Apr 2010 15:24:07 +0200
changeset 89 2ab0257408d6
parent 87 640852e46afa
child 90 3189b5c66e3d
Correct sync script.
build/sbin/sync_mosatags
--- a/build/sbin/sync_mosatags	Wed Apr 28 14:59:18 2010 +0200
+++ b/build/sbin/sync_mosatags	Wed Apr 28 15:24:07 2010 +0200
@@ -80,7 +80,7 @@
         hg archive -r $version "$export_path" || { echo "problem when archiving"; exit;}
     else
         echo "force update $version in $export_path"
-        hg update -C -r $version
+        hg update --clean -r $version
     fi
     
     popd;
@@ -109,8 +109,10 @@
     if [ -d "$export_path_web" ]; then
         pushd "$export_path_web";
         if [ -d web/sf ]; then
-            echo "cleaning symfony folder";
-            rm -fr web/sf;
+            echo "cleaning symfony folder before freeze"
+            rm -fr web/sf
+            rm -fr lib/symfony
+            rm -fr data/symfony
         fi
         php symfony freeze data/;
         popd;