From c472a56b34055526a6c490cd9f4f865695e9d5e2 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 28 Jan 2004 12:37:14 +0000 Subject: [PATCH] assorted fixes for upload and permissions Original commit message from CVS: assorted fixes for upload and permissions --- docs/upload.mak | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/upload.mak b/docs/upload.mak index 9fd57d866e..b08de5bda3 100644 --- a/docs/upload.mak +++ b/docs/upload.mak @@ -24,9 +24,11 @@ upload: $(FORMATS) else export DOCVERSION=head; \ fi; \ export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \ - echo Uploading docs to $(DOC_SERVER):$$DIR; \ ssh $(DOC_SERVER) mkdir -p $$DIR; \ - if echo $(FORMATS) | grep html > /dev/null; then rsync -arv -e ssh html $(DOC_SERVER):$$DIR; fi; \ - if echo $(FORMATS) | grep ps > /dev/null; then rsync -arv -e ssh $(DOC).ps $(DOC_SERVER):$$DIR; fi; \ - if echo $(FORMATS) | grep pdf > /dev/null; then rsync -arv -e ssh $(DOC).pdf $(DOC_SERVER):$$DIR; fi; \ + if echo $(FORMATS) | grep html > /dev/null; then export SRC="$$SRC html"; fi; \ + if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \ + if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \ + echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \ + rsync -rv -e ssh $$SRC $(DOC_SERVER):$$DIR; \ + ssh $(DOC_SERVER) chmod -R g+w $$DIR; \ echo Done