PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/release/doc/share/examples/Makefile.relnotesng

https://bitbucket.org/freebsd/freebsd-head/
Unknown | 61 lines | 52 code | 9 blank | 0 comment | 0 complexity | 002ee045af63e0e424b51b997f9da6cf MD5 | raw file
 1# -*- makefile -*-
 2#
 3# $FreeBSD$
 4#
 5# Sample makefile for rendering and uploading RELNOTESng files outside
 6# the build tree.
 7#
 8
 9ARCHS=		amd64 ia64 i386 pc98 powerpc sparc64
10MULTITEXTS=	
11UNITEXTS=	hardware readme relnotes errata
12
13IMAGEDIR=	.imagedir
14RHOST=		freefall.freebsd.org
15RDIR=		public_html/relnotes/CURRENT
16DOCDIR=		./release/doc
17LANG=		en_US.ISO8859-1
18
19DOC_PREFIX?=	/usr/doc
20CSS_SHEET?=	${DOC_PREFIX}/share/misc/docbook.css
21FORMATS?=	html txt pdf
22
23BUILD_OPTIONS+=	URLS_ABSOLUTE=YES
24
25all:
26	(cd ${DOCDIR}; ${MAKE} DOC_PREFIX=${DOC_PREFIX} FORMATS="${FORMATS}" ${BUILD_OPTIONS} all)
27
28lint:
29	(cd ${DOCDIR}; ${MAKE} DOC_PREFIX=${DOC_PREFIX} lint)
30
31image:	all
32	@echo "#"
33	@echo "# Creating local image"
34	@echo "#"
35	rm -rf ${IMAGEDIR}
36	mkdir ${IMAGEDIR}
37	cp -p ${CSS_SHEET} ${IMAGEDIR}/docbook.css
38	for i in ${ARCHS}; do \
39		for j in ${MULTITEXTS}; do \
40			for k in ${FORMATS}; do \
41	cp -p ${DOCDIR}/${LANG}/$${j}/$${i}/article.$${k} ${IMAGEDIR}/$${j}-$${i}.$${k} ; \
42			done; \
43		done; \
44	done
45	for j in ${UNITEXTS}; do \
46		for k in ${FORMATS}; do \
47	cp -p ${DOCDIR}/${LANG}/$${j}/article.$${k} ${IMAGEDIR}/$${j}.$${k} ; \
48		done; \
49	done
50
51push:	image
52	@echo "#"
53	@echo "# Pushing to ${RHOST}"
54	@echo "#"
55#	(cd ${IMAGEDIR}; tar -cf - .) | gzip -c -9 | (ssh ${RHOST} "( cd ${RDIR}; gunzip -c | tar -xf -)" )
56	(cd ${IMAGEDIR}; rsync -azuv * ${RHOST}:${RDIR})
57	rm -rf ${IMAGEDIR}
58
59clean:
60	(cd ${DOCDIR}; ${MAKE} DOC_PREFIX=${DOC_PREFIX} FORMATS="${FORMATS}" clean)
61	rm -rf ${IMAGEDIR}