Skip to content

Commit 2735cf2

Browse files
martinpittjelly
authored andcommitted
pkg: Install *.LEGAL.txt as documentation
These are not really part of the cockpit package data, but documentation, so put them into /usr/share/doc/cockpit/legal/ instead. Also, out of the 61 *.LEGAL.txt files that esbuild creates, 40 are empty (0 bytes). Installing them is just noise, so weed them out. See evanw/esbuild#3670
1 parent 4b6a6f5 commit 2735cf2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/Makefile.am

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ $(DIST_STAMP): $(srcdir)/package-lock.json $(PKG_INPUTS)
3434

3535
EXTRA_DIST += build.js files.js package.json package-lock.json
3636

37+
# don't install empty LEGAL.txt files, see https://github.com/evanw/esbuild/issues/3670
3738
INSTALL_DATA_LOCAL_TARGETS += install-bundles
3839
install-bundles:
39-
cd $(srcdir)/dist; find */* -type f -exec install -D -m 644 '{}' '$(abspath $(DESTDIR)$(datadir))/cockpit/{}' \;
40+
cd $(srcdir)/dist; find */* -type f ! -name '*.LEGAL.txt' -exec install -D -m 644 '{}' '$(abspath $(DESTDIR)$(datadir))/cockpit/{}' \;
41+
find $(srcdir)/dist -name '*.LEGAL.txt' ! -empty -exec install --target-directory '$(abspath $(DESTDIR)$(docdir))/legal' '{}' -D -m 644 '{}' \;
4042

4143
UNINSTALL_LOCAL_TARGETS += uninstall-bundles
4244
uninstall-bundles:

0 commit comments

Comments
 (0)