]> err.no Git - yubikey-personalization.old/commitdiff
EXTRA_DIST magic to get all wiki files.
authorsimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Fri, 8 May 2009 06:57:31 +0000 (06:57 +0000)
committersimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Fri, 8 May 2009 06:57:31 +0000 (06:57 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@85 b62f149e-849f-11dd-9899-c7ba65f7c4c7

Makefile.am

index 29ca7738c5b76eeb650cf83cd41e4d596f8b6b26..874a4f5156206f8fa1810c6a03f5794baf421ad3 100644 (file)
@@ -63,25 +63,33 @@ ctests = selftest$(EXEEXT)
 check_PROGRAMS = $(ctests)
 TESTS = $(ctests)
 
+# Dist docs from wiki.
+EXTRA_DIST = doc/ReadMe.wiki doc/UsbhidIssue.wiki
+
 # Release
 
+PROJECT=yubikey-personalization
+USER=simon75j
+
 ChangeLog:
        svn2cl
 
-PROJECT=yubikey-personalization
+check-doc-dist:
+       perl -pe "s,^EXTRA_DIST = .*,EXTRA_DIST = `echo doc/*.wiki`," < Makefile.am > tmp
+       diff -ur Makefile.am tmp || (echo 'error: please update Makefile.am'; exit 1)
 
 release:
        rm -f ChangeLog
-       make ChangeLog distcheck
+       make check-doc-dist ChangeLog distcheck
        gpg -b $(PACKAGE)-$(VERSION).tar.gz
        gpg --verify $(PACKAGE)-$(VERSION).tar.gz.sig
        svn copy https://$(PROJECT).googlecode.com/svn/trunk/ \
         https://$(PROJECT).googlecode.com/svn/tags/$(PACKAGE)-$(VERSION) \
         -m "Tagging the $(VERSION) release of the $(PACKAGE) project."
        googlecode_upload.py -s "OpenPGP signature for $(PACKAGE) $(VERSION)." \
-        -p $(PROJECT) -u simon75j $(PACKAGE)-$(VERSION).tar.gz.sig
+        -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz.sig
        googlecode_upload.py -s "$(PACKAGE) $(VERSION)" \
-        -p $(PROJECT) -u simon75j $(PACKAGE)-$(VERSION).tar.gz 
+        -p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tar.gz 
        cp README ../wiki-$(PROJECT)/ReadMe.wiki && \
                cd ../wiki-$(PROJECT) && \
                svn commit -m Sync. ReadMe.wiki