---
ChangeLog | 4 ++++
lrde-upload.sh | 22 ++++++++++------------
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1e17844..c35f101 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-02 Roland Levillain <roland(a)lrde.epita.fr>
+
+ * lrde-upload.sh: Fix and factor uses of chmod.
+
2010-05-03 Roland Levillain <roland(a)lrde.epita.fr>
* AUTHORS: Update.
diff --git a/lrde-upload.sh b/lrde-upload.sh
index 436beb7..5f61ef2 100755
--- a/lrde-upload.sh
+++ b/lrde-upload.sh
@@ -74,35 +74,30 @@ find $DEST -maxdepth 1 -type f -mtime +1 -name
'olena-*-snapshot-*' \
# Upload the `.tar.gz' tarball.
cp -f olena-$VERSION.tar.gz $DEST/olena-$REV.tar.gz.tmp
mv -f $DEST/olena-$REV.tar.gz.tmp $DEST/olena-$REV.tar.gz
-chmod -R a+r $DEST/olena-$REV.tar.gz
# Upload the `.tar.bz2' tarball.
cp -f olena-$VERSION.tar.bz2 $DEST/olena-$REV.tar.bz2.tmp
mv -f $DEST/olena-$REV.tar.bz2.tmp $DEST/olena-$REV.tar.bz2
-chmod -R a+r $DEST/olena-$REV.tar.bz2
# Upload a copy of the reference manual and other documentation.
mkdir -p $DEST_DOC
# BuildBots' buildslaves set umask to 077 in their default
-# configuration. Set read permissions for all on uploaded files.
-cp milena/doc/ref-guide.pdf $DEST_DOC && chmod a+r $DEST_DOC/ref-guide.pdf
-cp milena/doc/tutorial.pdf $DEST_DOC && chmod a+r $DEST_DOC/tutorial.pdf
-cp milena/doc/user-refman.pdf $DEST_DOC && chmod a+r $DEST_DOC/user-refman.pdf
-cp milena/doc/white-paper.pdf $DEST_DOC && chmod a+r $DEST_DOC/white-paper.pdf
+# configuration.
+cp milena/doc/ref-guide.pdf $DEST_DOC
+cp milena/doc/tutorial.pdf $DEST_DOC
+cp milena/doc/user-refman.pdf $DEST_DOC
+cp milena/doc/white-paper.pdf $DEST_DOC
rm -rf $DEST_DOC/user-refman.tmp
rm -rf $DEST_DOC/white-paper.tmp
-# Upload only the HTML version of the user reference manual.
+# Upload only the HTML version (not the LaTeX sources) of the user
+# reference manual.
cp -pR milena/doc/user-refman/html $DEST_DOC/user-refman.tmp
cp -pR milena/doc/white-paper $DEST_DOC/white-paper.tmp
-# Likewise, set permissions for all on uploaded directories.
-chmod -R a+rX $DEST_DOC/user-refman.tmp
-chmod -R a+rX $DEST_DOC/white-paper.tmp
-
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
@@ -118,6 +113,9 @@ mv -f $DEST_DOC/white-paper.tmp $DEST_DOC/white-paper
rm -rf $DEST_DOC/user-refman.old
rm -rf $DEST_DOC/white-paper.old
+# Expose uploaded files.
+chmod -R a+rX $DEST
+
# We want to be able to modify these files with both the `build' and
# `doc' accounts.
chmod -R g+w $DEST_DOC/user-refman
--
1.5.6.5
Show replies by date