bibledit-development
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[be] [bug #25826] Backup on Windows is broken


From: Dan Dennison
Subject: [be] [bug #25826] Backup on Windows is broken
Date: Thu, 12 Mar 2009 01:39:50 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7

Update of bug #25826 (project bibledit):

                  Status:             In Progress => Ready For Test         

    _______________________________________________________

Follow-up Comment #1:

diff --git a/src/backup.cpp b/src/backup.cpp
index 4a83d81..c2575de 100644
--- a/src/backup.cpp
+++ b/src/backup.cpp
@@ -130,7 +130,11 @@ void backup_make(const ustring & project, bool full, int
timefrom)
       }
     }
     // Zip them.
+#ifdef WIN32
+    ustring command = "cd" + shell_quote_space(workingdirectory) + " && zip
-r " + gw_path_get_basename(filename) + " *.usfm && del *.usfm";
+#else
     ustring command = "cd" + shell_quote_space(workingdirectory) + "; zip -r
" + gw_path_get_basename(filename) + " *.usfm; rm *.usfm";
+#endif
     if (system(command.c_str())) ;
   }

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?25826>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]