mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
generate and include PDF versions of the docs in the release archive
This commit is contained in:
parent
fc4d1d9a60
commit
e6367abae9
@ -18,6 +18,9 @@ dist-hook:
|
|||||||
html:
|
html:
|
||||||
cd docs; make html
|
cd docs; make html
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
cd docs; make pdf
|
||||||
|
|
||||||
check: test
|
check: test
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@ -12,16 +12,20 @@ HTMLPAGES = \
|
|||||||
curl.html \
|
curl.html \
|
||||||
curl-config.html
|
curl-config.html
|
||||||
|
|
||||||
|
PDFPAGES = \
|
||||||
|
curl.pdf \
|
||||||
|
curl-config.pdf
|
||||||
|
|
||||||
SUBDIRS = examples libcurl
|
SUBDIRS = examples libcurl
|
||||||
|
|
||||||
EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS \
|
EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS \
|
||||||
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS \
|
README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS \
|
||||||
VERSIONS KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) \
|
VERSIONS KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) \
|
||||||
HISTORY INSTALL libcurl-the-guide
|
HISTORY INSTALL libcurl-the-guide $(PDFPAGES)
|
||||||
|
|
||||||
MAN2HTML= gnroff -man $< | man2html >$@
|
MAN2HTML= gnroff -man $< | man2html >$@
|
||||||
|
|
||||||
SUFFIXES = .1 .3 .html
|
SUFFIXES = .1 .3 .html .pdf
|
||||||
|
|
||||||
html: $(HTMLPAGES)
|
html: $(HTMLPAGES)
|
||||||
cd libcurl; make html
|
cd libcurl; make html
|
||||||
@ -31,3 +35,13 @@ html: $(HTMLPAGES)
|
|||||||
|
|
||||||
.1.html:
|
.1.html:
|
||||||
$(MAN2HTML)
|
$(MAN2HTML)
|
||||||
|
|
||||||
|
MAN2PDF = groff -Tps -man curl.1 $< >$@
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
for file in $(man_MANS); do \
|
||||||
|
foo=`echo $$file | sed -e 's/\.[0-9]$$//g'`; \
|
||||||
|
groff -Tps -man $$file >$$foo.ps; \
|
||||||
|
ps2pdf $$foo.ps $$foo.pdf; \
|
||||||
|
done
|
||||||
|
cd libcurl; make pdf
|
||||||
|
@ -75,7 +75,42 @@ HTMLPAGES = \
|
|||||||
libcurl-errors.html \
|
libcurl-errors.html \
|
||||||
index.html
|
index.html
|
||||||
|
|
||||||
EXTRA_DIST = $(man_MANS) $(HTMLPAGES)
|
PDFPAGES = \
|
||||||
|
curl_easy_cleanup.pdf \
|
||||||
|
curl_easy_getinfo.pdf \
|
||||||
|
curl_easy_init.pdf \
|
||||||
|
curl_easy_perform.pdf \
|
||||||
|
curl_easy_setopt.pdf \
|
||||||
|
curl_easy_duphandle.pdf \
|
||||||
|
curl_formadd.pdf \
|
||||||
|
curl_formparse.pdf \
|
||||||
|
curl_formfree.pdf \
|
||||||
|
curl_getdate.pdf \
|
||||||
|
curl_getenv.pdf \
|
||||||
|
curl_slist_append.pdf \
|
||||||
|
curl_slist_free_all.pdf \
|
||||||
|
curl_version.pdf \
|
||||||
|
curl_version_info.pdf \
|
||||||
|
curl_escape.pdf \
|
||||||
|
curl_unescape.pdf \
|
||||||
|
curl_free.pdf \
|
||||||
|
curl_strequal.pdf \
|
||||||
|
curl_strnequal.pdf \
|
||||||
|
curl_mprintf.pdf \
|
||||||
|
curl_global_init.pdf \
|
||||||
|
curl_global_cleanup.pdf \
|
||||||
|
libcurl.pdf \
|
||||||
|
curl_multi_add_handle.pdf \
|
||||||
|
curl_multi_cleanup.pdf \
|
||||||
|
curl_multi_fdset.pdf \
|
||||||
|
curl_multi_info_read.pdf \
|
||||||
|
curl_multi_init.pdf \
|
||||||
|
curl_multi_perform.pdf \
|
||||||
|
curl_multi_remove_handle.pdf \
|
||||||
|
libcurl-multi.pdf \
|
||||||
|
libcurl-errors.pdf
|
||||||
|
|
||||||
|
EXTRA_DIST = $(man_MANS) $(HTMLPAGES) $(PDFPAGES)
|
||||||
|
|
||||||
MAN2HTML= gnroff -man $< | man2html >$@
|
MAN2HTML= gnroff -man $< | man2html >$@
|
||||||
|
|
||||||
@ -88,3 +123,10 @@ html: $(HTMLPAGES)
|
|||||||
|
|
||||||
.1.html:
|
.1.html:
|
||||||
$(MAN2HTML)
|
$(MAN2HTML)
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
for file in $(man_MANS); do \
|
||||||
|
foo=`echo $$file | sed -e 's/\.[0-9]$$//g'`; \
|
||||||
|
groff -Tps -man $$file >$$foo.ps; \
|
||||||
|
ps2pdf $$foo.ps $$foo.pdf; \
|
||||||
|
done
|
||||||
|
7
maketgz
7
maketgz
@ -35,6 +35,10 @@ mv $HEADER.new $HEADER
|
|||||||
# Replace version number in header file:
|
# Replace version number in header file:
|
||||||
sed 's/#define CURL_VERSION.*/#define CURL_VERSION "'$curlversion'"/g' $CHEADER >$CHEADER.new
|
sed 's/#define CURL_VERSION.*/#define CURL_VERSION "'$curlversion'"/g' $CHEADER >$CHEADER.new
|
||||||
|
|
||||||
|
echo "curl version $curlversion"
|
||||||
|
echo "libcurl version $libversion"
|
||||||
|
echo "libcurl numerical $numeric"
|
||||||
|
|
||||||
# Save old header file
|
# Save old header file
|
||||||
cp -p $CHEADER $CHEADER.old
|
cp -p $CHEADER $CHEADER.old
|
||||||
|
|
||||||
@ -83,6 +87,9 @@ fi
|
|||||||
#
|
#
|
||||||
make html
|
make html
|
||||||
|
|
||||||
|
# And the PDF versions
|
||||||
|
make pdf
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
# Now run make dist to generate a tar.gz archive
|
# Now run make dist to generate a tar.gz archive
|
||||||
|
Loading…
Reference in New Issue
Block a user