[podsleuth] [build] release targets updated for git



commit 67693dc14784e688f010d4d40768e8efecf6a666
Author: Aaron Bockover <abockover novell com>
Date:   Thu Oct 1 19:04:15 2009 -0400

    [build] release targets updated for git
    
    Apparently our last release was using subversion. It's been
    quite some time. Also updated what gets uploaded to the server,
    sha256sum it, keep the news, changes, etc.

 Makefile.am |   30 ++++++++++++++++++++++++++----
 1 files changed, 26 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index d429fab..8617011 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,10 +34,6 @@ edit-table:
 	make edit-table; \
 	popd &>/dev/null
 
-release: upload
-	svn cp svn+ssh://abock svn gnome org/svn/podsleuth/trunk \
-		svn+ssh://abock svn gnome org/svn/podsleuth/tags/podsleuth-$(VERSION) -m "Tag for $(VERSION)"
-
 EXTRA_DIST = \
 	PodSleuth.mds
 
@@ -51,3 +47,29 @@ MAINTAINERCLEANFILES = \
 	Makefile \
 	Makefile.in
 
+# ---------------
+# Release Targets
+# ---------------
+
+-include release-rc
+
+prepare-release: distcheck
+	rm -rf release-data
+	mkdir release-data
+	cp NEWS release-data/$(PACKAGE)-$(VERSION).news
+	git log > release-data/$(PACKAGE)-$(VERSION).changes
+	find -maxdepth 1 \( -name \*.zip -o -name \*.bz2 -o -name \*.gz \) -exec cp -a {} release-data \;
+	cd release-data && sha256sum * > $(PACKAGE)-$(VERSION).sha256sum
+
+upload-release:
+	scp -r release-data $(RELEASE_WEB_USER)@$(RELEASE_WEB_HOST):$(RELEASE_WEB_PATH)/$(VERSION)
+	ssh $(RELEASE_WEB_USER)@$(RELEASE_WEB_HOST) rm -f $(RELEASE_WEB_PATH)/LATEST-IS\*
+	ssh $(RELEASE_WEB_USER)@$(RELEASE_WEB_HOST) ln -s $(VERSION) $(RELEASE_WEB_PATH)/LATEST-IS-$(VERSION)
+
+tag-release:
+	git tag -a -m "$(VERSION) release" $(VERSION)
+	git push origin $(VERSION)
+
+release: prepare-release upload-release tag-release
+	rm -rf release-data
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]