diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-20 16:41:11 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-20 16:41:15 +0100 |
commit | 415f9cf8ea7c0b3b8dcfb7108ec164d7057ee6be (patch) | |
tree | 63d0c390bc4a2cf7ae0e2aeb7de246b28c6b9a56 | |
parent | 0a54dccca0ed04a554c3ff1078fff4d7feb5b434 (diff) | |
parent | 9d6988fcd59c49f8925b671bf1d66f066c683be9 (diff) |
Merge branch 'Makefile-rule-clarifications' into telepathy-spec-0.22telepathy-spec-0.22.2
Fixes: <https://bugs.freedesktop.org/show_bug.cgi?id=35951>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r-- | Makefile | 51 |
1 files changed, 24 insertions, 27 deletions
@@ -10,6 +10,9 @@ DOC_RSYNC_FLAGS=-rvzPp --chmod=Dg+s,ug+rwX,o=rX --delete XMLS = $(wildcard spec/*.xml) TEMPLATES = $(wildcard doc/templates/*) +VERSION := $(shell sed -ne s'!<tp:version>\(.*\)</tp:version>!\1!p' spec/all.xml) +DISTNAME := telepathy-spec-$(VERSION) + GENERATED_FILES = \ doc/spec/index.html \ FIXME.out \ @@ -31,10 +34,10 @@ CHECK_FOR_UNRELEASED = NEWS $(filter-out spec/template.xml,$(XMLS)) check: all FIXME.out $(PYTHON) test/test-specparser.py - @version="`sed -ne s'!<tp:version>\(.*\)</tp:version>!\1!p' spec/all.xml`";\ - case "$$version" in \ + @case "$(VERSION)" in \ *.*.*.*) ;; \ *) \ + echo "Grepping spec for UNRELEASED..."; \ if grep -r UNRELEASED $(CHECK_FOR_UNRELEASED); \ then \ echo "^^^ This is meant to be a release, but some files say UNRELEASED" >&2; \ @@ -62,36 +65,30 @@ maintainer-upload-snapshot: doc/spec/index.html maintainer-upload-release: doc/spec/index.html check @install -d tmp - set -e ; \ - version="`sed -ne s'!<tp:version>\(.*\)</tp:version>!\1!p' spec/all.xml`";\ - if ! echo $$version | egrep '[0-9]+\.[0-9]+\.[0-9]+'; then \ - echo 'This does not look like a spec release'; \ + @if ! echo $(VERSION) | egrep '[0-9]+\.[0-9]+\.[0-9]+'; then \ + echo $(VERSION) 'does not look like a spec release'; \ exit 1; \ - fi; \ - test -f telepathy-spec-$$version.tar.gz; \ - test -f telepathy-spec-$$version.tar.gz.asc; \ - gpg --verify telepathy-spec-$$version.tar.gz.asc; \ - rsync -vzP telepathy-spec-$$version.tar.gz telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/telepathy-spec/ ; \ - rsync -vzP telepathy-spec-$$version.tar.gz.asc telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/telepathy-spec/ ; \ - rsync $(DOC_RSYNC_FLAGS) doc/spec/ telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/spec/ ; \ + fi + test -f telepathy-spec-$(VERSION).tar.gz + test -f telepathy-spec-$(VERSION).tar.gz.asc + gpg --verify telepathy-spec-$(VERSION).tar.gz.asc + rsync -vzP telepathy-spec-$(VERSION).tar.gz telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/telepathy-spec/ + rsync -vzP telepathy-spec-$(VERSION).tar.gz.asc telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/telepathy-spec/ + rsync $(DOC_RSYNC_FLAGS) doc/spec/ telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/spec/ rsync $(DOC_RSYNC_FLAGS) doc/spec/ telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/spec-snapshot/ dist: check @install -d tmp - set -e ;\ - version="`sed -ne s'!<tp:version>\(.*\)</tp:version>!\1!p' spec/all.xml`";\ - distname="telepathy-spec-$$version";\ - rm -f tmp/ChangeLog "$$distname".tar "$$distname".tar.gz; \ - $(GIT) archive --format=tar --prefix="$$distname"/ "HEAD^{tree}" \ - > "$$distname".tar;\ - rm -rf tmp/"$$distname";\ - mkdir tmp/"$$distname";\ - $(GIT) log telepathy-spec-0.16.0.. > tmp/"$$distname"/ChangeLog; \ - $(TAR) -rf "$$distname".tar -C tmp --owner 0 --group 0 --mode 0664 \ - "$$distname"/ChangeLog;\ - $(GZIP) -9 "$$distname".tar;\ - $(TAR) -ztvf "$$distname".tar.gz;\ - rm -rf tmp/"$$distname" + rm -f tmp/ChangeLog "$(DISTNAME)".tar "$(DISTNAME)".tar.gz + $(GIT) archive --format=tar --prefix="$(DISTNAME)"/ "HEAD^{tree}" \ + > "$(DISTNAME)".tar + rm -rf tmp/"$(DISTNAME)" + mkdir tmp/"$(DISTNAME)" + $(GIT) log telepathy-spec-0.16.0.. > tmp/"$(DISTNAME)"/ChangeLog + $(TAR) -rf "$(DISTNAME)".tar -C tmp --owner 0 --group 0 --mode 0664 \ + "$(DISTNAME)"/ChangeLog + $(GZIP) -9 "$(DISTNAME)".tar + rm -rf tmp/"$(DISTNAME)" BRANCH = $(shell sh tools/git-which-branch.sh misc | tr -d '\n' | tr -C "[:alnum:]" _) UPLOAD_BRANCH_TO = people.freedesktop.org:public_html/telepathy-spec |