Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a6bc92c
Makefile: generate and install the {pnc,step}conf desktop files
SebKuzminsky Aug 16, 2022
aa77f2a
d/configure: get rid of EXTRAS, we don't use it anymore
SebKuzminsky Jul 6, 2022
728c832
d/configure: get rid of EXTRA_FILES, it's not used
SebKuzminsky Jul 6, 2022
dfb16c8
d/rules: simplify validation of *.desktop files
SebKuzminsky Jul 6, 2022
e896b41
d/rules: remove dead code
SebKuzminsky Jul 26, 2022
9f4e940
Makefiles: new targets to build & install just software or just docs
SebKuzminsky Jul 6, 2022
fe3d7f6
d/rules: only build the software (no docs) for architecture-dependent…
SebKuzminsky Jul 26, 2022
ebc55fa
d/rules: sort dh_auto_install stuff into -arch and -indep
SebKuzminsky Jul 6, 2022
2579992
linuxcnc-uspace: use dh_install to install the appropriate 'extra' files
SebKuzminsky Jul 26, 2022
97e3e29
linuxcnc-uspace: include the optional axis config files & README
SebKuzminsky Jul 23, 2022
223bf76
linuxcnc-uspace: use dh_installdocs to include a missing doc
SebKuzminsky Jul 26, 2022
2022c4e
d/rules: change DESTDIR to debian/tmp
SebKuzminsky Jul 26, 2022
97c29db
linuxcnc-doc-*: use dh_install and dh_installdocs
SebKuzminsky Aug 15, 2022
bed446b
move g-code quick ref from linuxcnc-uspace to doc debs
SebKuzminsky Jul 26, 2022
7aa8362
move LinuxCNC_Developer doc from -dev to -doc-en
SebKuzminsky Aug 15, 2022
9e3c5f1
linuxcnc-uspace: dh_install stuff from debian/tmp
SebKuzminsky Jul 24, 2022
51cb55c
linuxcnc-uspace-dev: install with dh_install
SebKuzminsky Jul 24, 2022
dfd4ab3
linuxcnc-uspace: handle sample configs as docs
SebKuzminsky Jul 23, 2022
1ffed0f
the new linuxcnc-doc-* debs conflict with the old linuxcnc-uspace, an…
SebKuzminsky Jul 26, 2022
5932f22
bump debhelper to 12 (available in buster), no longer need --parallel
SebKuzminsky Jul 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion debian/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ linuxcnc-dev
linuxcnc-uspace-dev
linuxcnc-doc-*/
*.substvars
/linuxcnc*.install

# generated from `.in` by debian/configure
linuxcnc-uspace.install

*.debhelper
shlibs.local
linuxcnc-uspace.lintian-overrides
10 changes: 2 additions & 8 deletions debian/configure
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ if [ "$1" == "-h" -o "$1" == "-help" -o "$1" == "--help" ]; then
exit 0
fi

EXTRA_FILES=
EXTRA_BUILD=
PYTHON_VERSION_NEXT=$(python3 -c 'import sys; print (sys.version[:2] + str(1+int(sys.version[2])))')
LIBREADLINE_DEV="libreadline-gplv2-dev | libreadline-dev"
Expand Down Expand Up @@ -62,8 +61,6 @@ elif [ -f /etc/lsb-release ]; then
DISTRIB_NAME=$DISTRIB_ID-$DISTRIB_RELEASE
fi

EXTRAS=extras

if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then
DOC_DEPENDS="asciidoc (>= 8.5),\n dblatex (>= 0.2.12),\n docbook-xsl,\n dvipng,\n ghostscript,\n graphviz,\n groff,\n imagemagick,\n inkscape,\n python3-lxml,\n source-highlight,\n w3c-linkchecker,\n xsltproc,\n texlive-extra-utils,\n texlive-font-utils,\n texlive-fonts-recommended,\n texlive-lang-cyrillic,\n texlive-lang-european,\n texlive-lang-french,\n texlive-lang-german,\n texlive-lang-polish,\n texlive-lang-spanish,\n texlive-latex-recommended,\n asciidoc-dblatex"

Expand All @@ -89,8 +86,8 @@ PYTHON_IMAGING=python3-pil
PYTHON_IMAGING_TK=python3-pil.imagetk
QTVCP_DEPENDS="python3-pyqt5,\n python3-pyqt5.qsci,\n python3-pyqt5.qtsvg,\n python3-pyqt5.qtopengl,\n python3-opencv,\n python3-dbus,python3-espeak,\n python3-dbus.mainloop.pyqt5,\n python3-pyqt5.qtwebkit,\n espeak-ng,\n pyqt5-dev-tools,\n gstreamer1.0-tools,espeak,\n sound-theme-freedesktop"
YAPPS_RUNTIME="python3-yapps"
DEBHELPER="debhelper (>= 9)"
COMPAT="9"
DEBHELPER="debhelper (>= 12)"
COMPAT="12"

case $DISTRIB_NAME in
Ubuntu-21.*|Debian-11|Debian-11.*|Debian-testing|Debian-unstable)
Expand Down Expand Up @@ -120,7 +117,6 @@ KERNEL_DEPENDS_BUILD=libudev-dev
KERNEL_HEADERS=
KERNEL_VERSION=uspace
MODUTILS_DEPENDS=
EXTRA_FILES="usr/bin/rtapi_app"
DISTRIB_NAME=uspace-$DISTRIB_NAME
MAIN_PACKAGE_NAME=linuxcnc-uspace
OTHER_MAIN_PACKAGE_NAME=linuxcnc
Comment on lines 121 to 122
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If your already in and removing things, MAIN_PACKAGE_NAME, and OTHER_MAIN_PACKAGE_NAME is duplicated.

Expand All @@ -135,9 +131,7 @@ sed \
-e "s#@DISTRIB_NAME@#$DISTRIB_NAME#g" \
-e "s#@DOC_DEPENDS@#$DOC_DEPENDS#g" \
-e "s#@EXTRA_BUILD@#$EXTRA_BUILD#g" \
-e "s#@EXTRA_FILES@#$EXTRA_FILES#g" \
-e "s#@EXTRA_RECOMMENDS@#$EXTRA_RECOMMENDS#g" \
-e "s#@EXTRAS@#$EXTRAS#g" \
-e "s#@KERNEL_DEPENDS@#$KERNEL_DEPENDS#g" \
-e "s#@KERNEL_DEPENDS_BUILD@#$KERNEL_DEPENDS_BUILD#g" \
-e "s#@KERNEL_HEADERS@#$KERNEL_HEADERS#g" \
Expand Down
6 changes: 6 additions & 0 deletions debian/control.docs.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Package: linuxcnc-doc-en
Provides: linuxcnc-doc
Architecture: all
Depends: ${misc:Depends}
Breaks: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4),
Replaces: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4)
Recommends: xdg-utils
Suggests: pdf-viewer
Description: motion controller for CNC machines and robots (English documentation)
Expand All @@ -15,6 +17,8 @@ Package: linuxcnc-doc-fr
Provides: linuxcnc-doc
Architecture: all
Depends: ${misc:Depends}
Breaks: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4)
Replaces: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4)
Recommends: xdg-utils
Suggests: pdf-viewer
Description: motion controller for CNC machines and robots (French documentation)
Expand All @@ -28,6 +32,8 @@ Package: linuxcnc-doc-es
Provides: linuxcnc-doc
Architecture: all
Depends: ${misc:Depends}
Breaks: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4)
Replaces: linuxcnc-uspace (<= 2.9.0~pre0+git20220402.2500863908-4)
Recommends: xdg-utils
Suggests: pdf-viewer
Description: controlador de movimiento para máquinas CNC y robots (Español).
Expand Down
8 changes: 7 additions & 1 deletion debian/control.main-pkg.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Package: @MAIN_PACKAGE_NAME@
Conflicts: linuxcnc-sim, @OTHER_MAIN_PACKAGE_NAME@
Conflicts:
linuxcnc-sim,
@OTHER_MAIN_PACKAGE_NAME@
Breaks:
linuxcnc-doc-en (<= 2.9.0~pre0+git20220402.2500863908-4),
linuxcnc-doc-es (<= 2.9.0~pre0+git20220402.2500863908-4),
linuxcnc-doc-fr (<= 2.9.0~pre0+git20220402.2500863908-4)
Architecture: any
Depends:
${misc:Depends},
Expand Down
1 change: 1 addition & 0 deletions debian/linuxcnc-doc-en.doc-base
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Section: Science/Engineering

Format: PDF
Files:
/usr/share/doc/linuxcnc/LinuxCNC_Developer.pdf
/usr/share/doc/linuxcnc/LinuxCNC_Documentation.pdf
/usr/share/doc/linuxcnc/LinuxCNC_Getting_Started.pdf
/usr/share/doc/linuxcnc/LinuxCNC_Integrator.pdf
Expand Down
15 changes: 15 additions & 0 deletions debian/linuxcnc-doc-en.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
usr/share/doc/linuxcnc/LinuxCNC_Developer.pdf
usr/share/doc/linuxcnc/LinuxCNC_Documentation.pdf
usr/share/doc/linuxcnc/LinuxCNC_Getting_Started.pdf
usr/share/doc/linuxcnc/LinuxCNC_Integrator.pdf
usr/share/doc/linuxcnc/LinuxCNC_Manual_Pages.pdf

usr/share/doc/linuxcnc/AUTHORS
usr/share/doc/linuxcnc/INSTALL.adoc
usr/share/doc/linuxcnc/README.adoc
usr/share/doc/linuxcnc/README.axis
usr/share/doc/linuxcnc/axis_light_background
usr/share/doc/linuxcnc/rtfaults.adoc
usr/share/doc/linuxcnc/tklinuxcnc.adoc

docs/html/gcode.html
5 changes: 5 additions & 0 deletions debian/linuxcnc-doc-en.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
debian/extras/usr/share/applications/linuxcnc-documentation.desktop usr/share/applications
debian/extras/usr/share/applications/linuxcnc-gcoderef.desktop usr/share/applications
debian/extras/usr/share/applications/linuxcnc-gettingstarted.desktop usr/share/applications
debian/extras/usr/share/applications/linuxcnc-integratorinfo.desktop usr/share/applications
debian/extras/usr/share/applications/linuxcnc-manualpages.desktop usr/share/applications
9 changes: 9 additions & 0 deletions debian/linuxcnc-doc-es.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
usr/share/doc/linuxcnc/LinuxCNC_Developer_es.pdf
usr/share/doc/linuxcnc/LinuxCNC_Documentation_es.pdf
usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_es.pdf
usr/share/doc/linuxcnc/LinuxCNC_Integrator_es.pdf

usr/share/doc/linuxcnc/asciidoc-markup_es.adoc
usr/share/doc/linuxcnc/rtfaults_es.adoc

docs/html/es/gcode.html
1 change: 1 addition & 0 deletions debian/linuxcnc-doc-es.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/extras/usr/share/applications/*_es.desktop usr/share/applications/
6 changes: 6 additions & 0 deletions debian/linuxcnc-doc-fr.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
usr/share/doc/linuxcnc/LinuxCNC_Developer_fr.pdf
usr/share/doc/linuxcnc/LinuxCNC_Documentation_fr.pdf
usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_fr.pdf
usr/share/doc/linuxcnc/LinuxCNC_Integrator_fr.pdf

docs/html/fr/gcode.html
1 change: 1 addition & 0 deletions debian/linuxcnc-doc-fr.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/extras/usr/share/applications/*_fr.desktop usr/share/applications/
6 changes: 6 additions & 0 deletions debian/linuxcnc-doc-zh-cn.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
usr/share/doc/linuxcnc/LinuxCNC_Developer_zh_CN.pdf
usr/share/doc/linuxcnc/LinuxCNC_Documentation_zh_CN.pdf
usr/share/doc/linuxcnc/LinuxCNC_Getting_Started_zh_CN.pdf
usr/share/doc/linuxcnc/LinuxCNC_Integrator_zh_CN.pdf

docs/html/zh_CN/gcode.html
1 change: 1 addition & 0 deletions debian/linuxcnc-doc-zh-cn.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/extras/usr/share/applications/*_zh_CN.desktop usr/share/applications/
6 changes: 0 additions & 6 deletions debian/linuxcnc-uspace-dev.doc-base

This file was deleted.

7 changes: 7 additions & 0 deletions debian/linuxcnc-uspace-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
usr/bin/halcompile
usr/include/linuxcnc
usr/lib/liblinuxcnc.a
usr/lib/*.so
usr/share/linuxcnc/Makefile.modinc
usr/share/man/man1/halcompile.1
usr/share/man/man3
3 changes: 3 additions & 0 deletions debian/linuxcnc-uspace.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/share/doc/linuxcnc/examples

README.md
1 change: 1 addition & 0 deletions debian/linuxcnc-uspace.links
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/share/linuxcnc/ncfiles usr/share/doc/linuxcnc/examples/nc_files
Loading