upload-mak: upload docs to $X.Y sub-directory not $VERSION
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 24 Sep 2012 15:02:19 +0000 (16:02 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 24 Sep 2012 15:07:39 +0000 (16:07 +0100)
We don't need docs for every dot version release, just put all
1.0.x docs into 1.0/, all 1.2.x docs into 1.2/ etc.

upload-doc.mak

index 3bf9496..c1c4945 100644 (file)
@@ -44,14 +44,12 @@ upload: $(FORMATS)
        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; \
        \
-       # upload releases to both 0.10.X/ and head/ subdirectories \
-       if test "x$(PACKAGE_VERSION_NANO)" = x0; then \
-         export DIR=$(DOC_BASE)/gstreamer/$(VERSION)/$(DOC); \
-         echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
-         ssh $(DOC_SERVER) mkdir -p $$DIR; \
-         rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
-         ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
-       fi; \
+       # upload releases to both X.Y/ and head/ subdirectories \
+       export DIR=$(DOC_BASE)/gstreamer/$(PACKAGE_VERSION_MAJOR).$(PACKAGE_VERSION_MINOR)/$(DOC); \
+       echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
+       ssh $(DOC_SERVER) mkdir -p $$DIR; \
+       rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
+       ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
        \
        export DIR=$(DOC_BASE)/gstreamer/head/$(DOC); \
        echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \