Skip to content

Commit eebf34b

Browse files
committed
Convert the linuxcnc.1 man-page to asciidoc format.
1 parent b4b0934 commit eebf34b

4 files changed

Lines changed: 125 additions & 132 deletions

File tree

docs/src/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ uk/*
3030
vi/*
3131
zh_CN/*
3232
index_*.tmpl
33+
man/man1/linuxcnc.1.adoc

docs/src/Submakefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: docs docsclean checkref checkref_en checkref_ar checkref_de checkref_es checkref_fr checkref_nb checkref_ru checkref_sv checkref_tr checkref_zh_CN
1+
.PHONY: docs docclean checkref checkref_en checkref_ar checkref_de checkref_es checkref_fr checkref_nb checkref_ru checkref_sv checkref_tr checkref_zh_CN
22
.PHONY: pdfdocs htmldocs install-doc install-doc-pdf install-doc-html
33

44
# To make linuxcnc-checklink widely available
@@ -22,9 +22,11 @@ MAN_SRCS = $(sort \
2222
$(wildcard $(DOC_DIR)/man/es/man9/*.9) \
2323
$(GENERATED_MANPAGES))
2424

25-
../docs/man/man1/linuxcnc.1: $(DOC_SRCDIR)/man/man1/linuxcnc.1.in config.status
25+
$(DOC_SRCDIR)/man/man1/linuxcnc.1.adoc: $(DOC_SRCDIR)/man/man1/linuxcnc.1.adoc.in config.status
2626
./config.status --file=$@:$<
2727

28+
../docs/man/man1/linuxcnc.1: $(DOC_SRCDIR)/man/man1/linuxcnc.1.adoc
29+
2830
ifneq ($(MANDB),)
2931
docs: $(DOC_DIR)/man/index.db
3032
$(DOC_DIR)/man/index.db: $(MAN_SRCS)
@@ -396,7 +398,7 @@ htmldocs: svgs_made_from_dots .htmldoc-stamp checkref_en
396398
touch $@
397399

398400
copy_asciidoc_files: $(wildcard /etc/asciidoc/stylesheets/*.css) $(wildcard /etc/asciidoc/javascripts/*.js)
399-
cp -f $^ $(DOC_DIR)/html
401+
if test -n "$^"; then cp -f $^ $(DOC_DIR)/html ; fi
400402

401403
gen_complist: $(DOC_SRCDIR)/gen_complist.py $(DOC_SRCDIR)/hal/components.adoc $(MAN_HTML_TARGETS)
402404
mkdir -p $(DOC_DIR)/html/hal
@@ -949,6 +951,7 @@ docclean:
949951
-rm -f .images-stamp
950952
-rm -f .include-stamp
951953
-rm -f $(DOTFILES:.dot=.svg)
954+
$(RM) $(DOC_SRCDIR)/man/man1/linuxcnc.1.adoc
952955

953956

954957
MAN_DEPS := $(patsubst $(DOC_DIR)/man/%, depends/%.d, $(MAN_SRCS))
@@ -985,6 +988,8 @@ else
985988
docs:
986989
$(error Cannot build documents, missing AsciiDoc or some other required program, or explicitly disabled in configure)
987990

991+
clean:
992+
$(RM) $(DOC_SRCDIR)/man/man1/linuxcnc.1.adoc
988993
endif
989994

990995
manpages: $(GENERATED_MANPAGES)
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
= linuxcnc(1)
2+
3+
== NAME
4+
5+
linuxcnc - LinuxCNC (The Enhanced Machine Controller)
6+
7+
== SYNOPSIS
8+
9+
*linuxcnc* [_-h_] [_-v_] [_-d_] [_-r_] [_-l_] [_-k_] [_-t <tpmodulename>
10+
[parameters]_] [_-m <homemodulename> [parameters]_] [_-H <dirname>_]
11+
[_INI file_]
12+
13+
== DESCRIPTION
14+
15+
*linuxcnc* is used to start LinuxCNC (The Enhanced Machine Controller).
16+
It starts the realtime system and then initializes a number of LinuxCNC
17+
components (IO, Motion, GUI, HAL, etc). The most important parameter is
18+
_INI file_, which specifies the configuration name you would like to
19+
run. If _INI file_ is not specified, the *linuxcnc* script presents a
20+
graphical wizard to let you choose one.
21+
22+
== OPTIONS
23+
24+
*-h*::
25+
Shows the help
26+
*-v*::
27+
Be a little bit verbose. This causes the script to print information
28+
as it works.
29+
*-d*::
30+
Print lots of debug information. All executed commands are echoed to
31+
the screen. This mode is useful when something is not working as it
32+
should.
33+
*-r*::
34+
Disable redirection of stdout and stderr to ~/linuxcnc_print.txt and
35+
~/linuxcnc_debug.txt when stdin is not a tty. Used when running
36+
linuxcnc tests non-interactively.
37+
*-l*::
38+
Use the last-used INI file without prompting. This is often a good
39+
choice for a shortcut command or startup item.
40+
*-k*::
41+
Continue in the presence of errors in HAL files
42+
*-t <tpmodulename> [parameters]*::
43+
Specify custom trajectory_planning_module overrides optional INI
44+
setting [TRAJ]TPMOD
45+
*-m <homemodulename> [parameters]*::
46+
Specify custom homing_module overrides optional INI setting
47+
[EMCMOT]HOMEMOD
48+
*-H <dirname>*::
49+
Search dirname for HAL files before searching INI directory and system
50+
library: $HALLIB_DIR
51+
*<INIFILE>*::
52+
The INI file is the main piece of a LinuxCNC configuration. It is not
53+
the entire configuration; there are various other files that go with
54+
it (NML files, HAL files, TBL files, VAR files). It is, however, the
55+
most important one, because it is the file that holds the
56+
configuration together. It can adjust a lot of parameters itself, but
57+
it also tells *linuxcnc* which other files to load and use.
58+
59+
There are several ways to specify which config to use:
60+
61+
Specify the absolute path to an INI, e.g., +
62+
*linuxcnc* _/usr/local/linuxcnc/configs/sim/sim.ini_
63+
64+
Specify a relative path from the current directory, e.g. +
65+
*linuxcnc* _configs/sim/sim.ini_
66+
67+
Otherwise, in the case where the *INIFILE* is not specified, the
68+
behavior will depend on whether you configured LinuxCNC with
69+
*--enable-run-in-place*. If so, the LinuxCNC config chooser will search
70+
only the configs directory in your source tree. If not (or if you are
71+
using a packaged version of LinuxCNC), it may search several
72+
directories. The config chooser is currently set to search the path:
73+
74+
....
75+
@LINUXCNC_CONFIG_PATH@
76+
....
77+
78+
== EXAMPLES
79+
80+
*linuxcnc*
81+
82+
*linuxcnc* _configs/sim/sim.ini_
83+
84+
*linuxcnc* _/etc/linuxcnc/sample-configs/stepper/stepper_mm.ini_
85+
86+
== SEE ALSO
87+
88+
*halcmd(1)*
89+
90+
Much more information about LinuxCNC and HAL is available in the
91+
LinuxCNC and HAL User Manuals, found at /usr/share/doc/linuxcnc/.
92+
93+
Web: https://www.linuxcnc.org/
94+
95+
User forum: https://forum.linuxcnc.org/
96+
97+
== BUGS
98+
99+
None known at this time.
100+
101+
== AUTHOR
102+
103+
This man page written by Alex Joni, as part of the LinuxCNC Enhanced
104+
Machine Controller project.
105+
106+
== REPORTING BUGS
107+
108+
Please report any bugs at https://github.com/LinuxCNC/.
109+
110+
== COPYRIGHT
111+
112+
Copyright © 2003- The LinuxCNC authors.
113+
114+
This is free software; see the source for copying conditions. There is
115+
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
116+
PURPOSE.

docs/src/man/man1/linuxcnc.1.in

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)