ax_upload

Synopsis

AX_UPLOAD([command])

Description

Adds support for uploading dist files. %%s in the command will be substituted with the name of the file. e.g:

  AX_UPLOAD([ncftpput -v upload.sourceforge.net /incoming %%s])

To add upload support for other custom dists add upload-<TYPE> to UPLOAD_BIN or UPLOAD_SRC, where <TYPE> is the type of dist that is being uploaded and add a mapping from <TYPE> to the dist file name in the format ’{<TYPE>=><FILENAME>}’ to UPLOAD_TARGETS. For example:

  UPLOAD_BIN += upload-foobar
  UPLOAD_TARGETS += {foobar=>@PACKAGE@-@VERSION@.fb}

You can then upload of the src distribution files by running:

  make upload-src

all the binary distribution files by running:

  make upload-bin

or both by running:

  make upload

Source Code

Download the latest version of ax_upload.m4 or browse the macro’s revision history.

License

Copyright © 2009 Tom Howard 

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.