Commit Graph

67 Commits

Author SHA1 Message Date
Neels Hofmeyr c481a988e3 refactor Makefile build rules, don't use the FORCE
The initial goal was to make sure we don't have overall FORCE rules causing
unnecessary rebuilds -- annoying while writing documentation. As I looked
through possible dependencies, I finally understood what's going on here.

Remove code dup and nicely sort which belongs where in build/Makefile.*.inc. In
each, describe in a top comment how to use it, and also unify how they are
used:

- Rename Makefile.inc to Makefile.docbook.inc and refactor
- Add Makefile.vty-reference.inc
- Add Makefile.common.inc

Make sure that we accurately pick up all dependencies.

Drop use of the macro called 'command', that silenced the actual command lines
invoked and replaced them with short strings: it obscures what is actually
going on and makes the Makefiles hard to read and understand.

Each manual's makefile is greatly reduced to few definitions and a Makefile
include, e.g. one for asciidoc, one for VTY reference.

Move common/bsc_vty_additions.xml to OsmoBSC/vty/libbsc_vty_additions.xml, link
from OsmoNITB. It applies only to OsmoBSC and OsmoNITB.

Add a script that combines a VTY reference file with *all* additions files
found in a manual's vty/ dir. Call this from Makefile.vty-reference.inc.

Change-Id: I9758e04162a480e28c7dc83475b514cf7fd25ec0
2017-10-25 16:51:55 +00:00
Neels Hofmeyr 0e3e4c217a fix make deps: join hint_to_remove_draft_mode to build step
Change-Id: Iecf8e18ce2f1dac61bf55019e1fec601b33abb95
2017-09-19 02:43:28 +02:00
Pau Espin 36cc3e748c osmux-reference: Add traffic saving plot
Change-Id: I8fa60c1f95436c39fd1ff9424a907876d367484e
2017-07-19 16:24:29 +02:00
Pau Espin d04deae002 all manuals: Move date and release from center head to right foot
Otherwise long doc titles (top left) run on top of release and date
making it impossible to read any of them correctly.

Change-Id: I685a981a5cfd82214d1d654aa1553a844c2af157
2017-07-19 10:53:02 +00:00
Neels Hofmeyr 3e646810f0 all: show 'DRAFT' watermark on the first page
Unconditionally show a 'DRAFT' watermark only on the first page of each
document.

I would have liked to make this conditional based on the BUILD_RELEASE=*
variable, but could not figure out how to switch off a .sty code segment based
on command line parameters.

Since we only seem to render all manuals in DRAFT mode all the time, it seems
reasonable to include the DRAFT watermark always, requiring manual .sty editing
if anyone wanted to build a non-DRAFT version.

In the makefile, add an echo to say so in case of non-draft builds.

Change-Id: Ia71795481c2467aab11ab344517df74775b2a852
2017-06-12 22:15:30 +00:00
Neels Hofmeyr 3341330f3a all: show 'DRAFT' in page header, disable DRAFT watermark
The 'DRAFT' watermark in the page background is a hindrance when trying to
copy-paste text from the rendered PDFs. It segments the texts so that many code
lines cannot be marked in whole to copy.

So drop the watermark and instead just show 'DRAFT' in the page header.

Change-Id: Ie22cdddf46bf7640e7f027940a6db904bf639142
2017-06-12 22:15:12 +00:00
Neels Hofmeyr cc17ad5ee0 all manuals: number paragraphs up to level 5 depth
Change-Id: Ic03ff99df4d655ce0b2dbc5a042a3a62f07cfef7
2017-05-15 12:51:43 +00:00
Neels Hofmeyr 6dc47a8dd9 cosmetic: build: on a2x failure, use asciidoc -v and $ASCIIDOC_OPTS
This is only used to output warnings in case the a2x build failed.
Use ASCIIDOC_OPTS instead of repeating the same options (with one missing)
and add verbose output by asciidoc.

Change-Id: I6135ba1a3e46610eea6089e2218f1024c49054be
2016-10-18 17:11:22 +02:00
Neels Hofmeyr b156e76469 add 'make check' target
Generate *.check files from asciidoc output and grep for WARNINGs.
Add *.check files to gitignore and to 'make clean'.

Change-Id: Ibccc83a3415930a528f2e8e4e4dda3b81c6d0b64
2016-10-18 17:11:21 +02:00
Alexander Couzens e37ba377b3 build/Makefile: set LIBOSMO_DIR UPLOAD_PATH only if not exists
Allows the user to set by env or argument

Change-Id: Ibc2c9ff6e61fd8cb59b908a9586ad5841d698924
2016-10-18 13:34:08 +00:00
Neels Hofmeyr e2ba56ccce portability: use py script instead of 'date -d @1234'
On FreeBSD, the 'date' command's -d option has a completely different meaning.
Instead, use a small python script to do the date format conversion, which
should be more portable.

As a side effect, we now also use UTC instead of the build server's timezone,
which may be considered a more international choice.

Add build/unix-time-to-fmt.py, call in build/Makefile.asciidoc.inc.

Change-Id: I91a40656184f553ee375216d8ba5c7788fe9990d
2016-10-18 14:27:53 +02:00
Harald Welte 08e0f64081 Makefile.inc: Fix "make upload" for asciidoc PDFs 2016-05-22 20:26:22 +02:00
Holger Hans Peter Freyther 6e608fe242 diag-filter: Do not use the same output block as mscgen
By using the same name for the config it overwrite the one used
by the mscgen plugin. Let's avoid this and switch from svg to png
as well as the docbook classification doesn't seem to work.
2016-03-02 21:17:23 +01:00
Holger Hans Peter Freyther ba503c7b98 mscgen: Try to force png for now
The CI does not generate(?) or include the svg files in the PDF. It
is not clear why that is done if something is missing from mscgen or
from asciidoc or something else is wrong. Let's try once with the PNG
output.
2016-03-02 20:52:57 +01:00
Harald Welte 03febbaa2e Ensure it's called "HISTORY" not "REVISION HISTORY"
The GFDL specifically names a "History" section, so let's make sure we
stay within that language.
2016-02-20 18:28:46 +01:00
Harald Welte 5fcea8028d Ensure the git version + commit date ends up in PDF
This is a bit awkward, as the 'revnumber' asciidoc variable so far
doesn't seem to end up in the docbook-xml.  We now put it into
'releaseinfo' which gets then put into \DBKreleeaseinfo by dblatex.

makefile watermark fixup
2016-02-20 18:28:37 +01:00
Harald Welte 37ba7a9825 initial checkin of manuals to public repo
The manuals existed in different form for several years in an internal
sysmocom repository.  However, since they had just recently been
converted from docboox-xml to asciidoc and all files have been
re-shuffled for enabling the public release, there's not much point in
keeping the history with git-filter-branch.
2016-02-20 15:01:50 +01:00