diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/ctanupload/Makefile.example |
Initial commit
Diffstat (limited to 'support/ctanupload/Makefile.example')
-rw-r--r-- | support/ctanupload/Makefile.example | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/support/ctanupload/Makefile.example b/support/ctanupload/Makefile.example new file mode 100644 index 0000000000..2fef9e1622 --- /dev/null +++ b/support/ctanupload/Makefile.example @@ -0,0 +1,27 @@ +# Example Makefile which uses ctanify and ctanupload to pack and upload a +# LaTeX package. The required data is passed using environment variables. +CONTRIBUTION = foobar +NAME = John Doe +EMAIL = john.doe@inter.net +DIRECTORY = /macros/latex/contrib/${CONTRIBUTION} +LICENSE = free +FREEVERSION = lppl +FILE = ${CONTRIBUTION}.tar.gz +export CONTRIBUTION VERSION NAME EMAIL SUMMARY DIRECTORY DONOTANNOUNCE \ + ANNOUNCE NOTES LICENSE FREEVERSION FILE + +ctanify: ${FILE} + +${CONTRIBUTION}.sty: ${CONTRIBUTION}.ins ${CONTRIBUTION}.dtx + yes | tex $< + +${CONTRIBUTION}.pdf: ${CONTRIBUTION}.dtx ${CONTRIBUTION}.sty + latexmk $< + +${FILE}: ${CONTRIBUTION}.dtx ${CONTRIBUTION}.ins ${CONTRIBUTION}.sty \ + README ${CONTRIBUTION}.pdf + ctanify $^ + +upload: ctanify + ctanupload -p + |