maint.mk: provide "make upload" to ease uploading
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 20 Sep 2012 09:10:34 +0000 (11:10 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 25 Sep 2012 09:50:54 +0000 (11:50 +0200)
commitb9a38b4535158a96606a72d41ae3456509356935
tree1f483e897109f7c1ae982f031b165998f3881b85
parentaca9380111bb5df9f12b1aa38b6c202f97df6ac7
maint.mk: provide "make upload" to ease uploading

See <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
Do not depend simply on the current $(VERSION), as there may have been
new commits since the tarball generation.  Rather, rely on $(RELEASE),
as "make release-commit" already does.

For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
"make TYPE".

* top/maint.mk (upload_command, upload, release): New.
(RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
(VERSION): first word of $(RELEASE) is always right.
(emit_upload_commands): Adjust.
* top/README-release: Update.
ChangeLog
top/README-release
top/maint.mk