* lrde-upload.sh: Be more robust to cases of missing files.
---
ChangeLog | 6 ++++++
lrde-upload.sh | 10 ++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index eb44b23..534624a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-27 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Improve lrde-upload.sh.
+
+ * lrde-upload.sh: Be more robust to cases of missing files.
+
2010-04-26 Roland Levillain <roland(a)lrde.epita.fr>
Update lrde-upload.sh.
diff --git a/lrde-upload.sh b/lrde-upload.sh
index 4785567..e2481d9 100755
--- a/lrde-upload.sh
+++ b/lrde-upload.sh
@@ -51,8 +51,14 @@ chmod -R a+rX milena/doc/white-paper
cp -pR milena/doc/user-refman $DEST_DOC/user-refman.tmp
cp -pR milena/doc/white-paper $DEST_DOC/white-paper.tmp
-mv -f $DEST_DOC/user-refman $DEST_DOC/user-refman.old
-mv -f $DEST_DOC/white-paper $DEST_DOC/white-paper.old
+if test -e $DEST_DOC/user-refman; then
+ rm -rf $DEST_DOC/user-refman.old
+ mv -f $DEST_DOC/user-refman $DEST_DOC/user-refman.old
+fi
+if test -e $DEST_DOC/white-paper; then
+ rm -rf $DEST_DOC/white-paper.old
+ mv -f $DEST_DOC/white-paper $DEST_DOC/white-paper.old
+fi
mv -f $DEST_DOC/user-refman.tmp $DEST_DOC/user-refman
mv -f $DEST_DOC/white-paper.tmp $DEST_DOC/white-paper
--
1.5.6.5