File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -300,22 +300,22 @@ jobs:
300300 run : make nextest PROFILE=ci CARGOFLAGS="--hide-progress-bar"
301301 env :
302302 RUST_BACKTRACE : " 1"
303-
304- - name : " `make install PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
303+ - name : " `make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n`"
305304 shell : bash
306305 run : |
307306 set -x
308- DESTDIR=/tmp/ make PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n install
307+ DESTDIR=/tmp/ make install PROG_PREFIX=uu- PROFILE=release-fast COMPLETIONS=n MANPAGES=n LOCALES=n
309308 # Check that utils are built with given profile
310309 ./target/release-fast/true
311- # Check that the utils are present
312- test -f /tmp/usr/local/bin/tty
310+ # Check that the progs have prefix
311+ test -f /tmp/usr/local/bin/uu-tty
312+ test -f /tmp/usr/local/libexec/uu-coreutils/libstdbuf.*
313313 # Check that the manpage is not present
314- ! test -f /tmp/usr/local/share/man/man1/whoami.1
314+ ! test -f /tmp/usr/local/share/man/man1/uu- whoami.1
315315 # Check that the completion is not present
316- ! test -f /tmp/usr/local/share/zsh/site-functions/_install
317- ! test -f /tmp/usr/local/share/bash-completion/completions/head.bash
318- ! test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish
316+ ! test -f /tmp/usr/local/share/zsh/site-functions/_uu-install
317+ ! test -f /tmp/usr/local/share/bash-completion/completions/uu- head.bash
318+ ! test -f /tmp/usr/local/share/fish/vendor_completions.d/uu- cat.fish
319319 env :
320320 RUST_BACKTRACE : " 1"
321321 - name : " `make install`"
Original file line number Diff line number Diff line change @@ -27,20 +27,20 @@ CARGO ?= cargo
2727CARGOFLAGS ?=
2828RUSTC_ARCH ?= # should be empty except for cross-build, not --target $(shell rustc --print host-tuple)
2929
30+ # prefix prepended to all binaries and library dir
31+ PROG_PREFIX ?=
32+
3033# Install directories
3134PREFIX ?= /usr/local
3235DESTDIR ?=
3336BINDIR ?= $(PREFIX ) /bin
3437DATAROOTDIR ?= $(PREFIX ) /share
35- LIBSTDBUF_DIR ?= $(PREFIX ) /libexec/coreutils
38+ LIBSTDBUF_DIR ?= $(PREFIX ) /libexec/$( PROG_PREFIX ) coreutils
3639# Export variable so that it is used during the build
3740export LIBSTDBUF_DIR
3841
3942INSTALLDIR_BIN =$(DESTDIR )$(BINDIR )
4043
41- # prefix to apply to coreutils binary and all tool binaries
42- PROG_PREFIX ?=
43-
4444# This won't support any directory with spaces in its name, but you can just
4545# make a symlink without spaces that points to the directory.
4646BASEDIR ?= $(shell pwd)
You can’t perform that action at this time.
0 commit comments