Skip to content

Commit

Permalink
build: Include OS specific completions in tarball
Browse files Browse the repository at this point in the history
This should fix #1282,
although still doesn't deal with the issue of including tests for them
or not.
  • Loading branch information
yedayak committed Dec 3, 2024
1 parent 3e51b6c commit f0fed8d
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions completions/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
bashcompdir = $(datadir)/$(PACKAGE)/completions
bashcomp_DATA = 2to3 \
cross_platform = 2to3 \
7z \
a2x \
abook \
Expand Down Expand Up @@ -501,27 +500,36 @@ bashcomp_DATA = 2to3 \
zopfli \
zopflipng

solaris_extra = pkgutil

if SOLARIS
bashcomp_DATA += pkgutil
endif

if BSD
bashcomp_DATA += pkg_delete
endif
bsd_extra = pkg_delete

if FREEBSD
bashcomp_DATA += \
freebsd_extra = \
freebsd-update \
kldload \
kldunload \
portinstall \
portsnap \
portupgrade
endif

# We include all the files in the tarball
EXTRA_DIST = $(bashcomp_DATA) \
$(solaris_extra) \
$(bsd_extra) \
$(freebsd_extra)

EXTRA_DIST = $(bashcomp_DATA)
bashcompdir = $(datadir)/$(PACKAGE)/completions
bashcomp_DATA = $(cross_platform)
# We add only the completions that are relevant for the current platform we're installing on.
if SOLARIS
bashcomp_DATA += $(solaris_extra)
endif
if BSD
bashcomp_DATA += $(bsd_extra)
endif
if FREEBSD
bashcomp_DATA += $(freebsd_extra)
endif

CLEANFILES = \
7za \
Expand Down

0 comments on commit f0fed8d

Please sign in to comment.