better ordering for release process
Graham Knop [Mon, 18 Apr 2016 12:03:34 +0000 (08:03 -0400)]
lib/Distar.pm

index 8bf1f61..1d41abb 100644 (file)
@@ -154,11 +154,12 @@ check-cpan-upload:
        $(NOECHO) cpan-upload -h $(DEV_NULL_STDOUT)
 releasetest:
        $(MAKE) disttest RELEASE_TESTING=1 PASTHRU="$(PASTHRU) TEST_FILES=\"$(TEST_FILES)\""
-release: preflight releasetest
-       $(RM_RF) $(DISTVNAME)
-       $(MAKE) $(DISTVNAME).tar$(SUFFIX)
+release: preflight
+       $(MAKE) releasetest
        git commit -a -m "Release commit for $(VERSION)"
        git tag v$(VERSION) -m "release v$(VERSION)"
+       $(RM_RF) $(DISTVNAME)
+       $(MAKE) $(DISTVNAME).tar$(SUFFIX)
        $(NOECHO) $(MAKE) pushrelease FAKE_RELEASE=$(FAKE_RELEASE)
 pushrelease ::
        $(NOECHO) $(NOOP)