From 749a2476f45a2303b22301368990d7b0cb4c3731 Mon Sep 17 00:00:00 2001 From: Miles Liu Date: Thu, 20 Jul 2023 15:53:32 +0800 Subject: [PATCH] make: uninstall man pages --- .github/workflows/CICD.yml | 12 ++++++++++++ GNUmakefile | 1 + 2 files changed, 13 insertions(+) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index b31c462e98b..589126b6f4c 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -452,8 +452,20 @@ jobs: test -f /tmp/usr/local/share/man/man1/whoami.1 # Check that the completion is present test -f /tmp/usr/local/share/zsh/site-functions/_install + test -f /tmp/usr/local/share/bash-completion/completions/head + test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish env: RUST_BACKTRACE: "1" + - name: "`make uninstall`" + shell: bash + run: | + DESTDIR=/tmp/ make uninstall + # Check that the manpage is not present + ! test -f /tmp/usr/local/share/man/man1/whoami.1 + # Check that the completion is not present + ! test -f /tmp/usr/local/share/zsh/site-functions/_install + ! test -f /tmp/usr/local/share/bash-completion/completions/head + ! test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish build_rust_stable: name: Build/stable diff --git a/GNUmakefile b/GNUmakefile index 257f04a2658..c672458a1cd 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -386,5 +386,6 @@ endif rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/_$(PROG_PREFIX),$(PROGS)) rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/$(PROG_PREFIX),$(PROGS)) rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/$(PROG_PREFIX),$(addsuffix .fish,$(PROGS))) + rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/man/man1/$(PROG_PREFIX),$(addsuffix .1,$(PROGS))) .PHONY: all build build-coreutils build-pkgs test distclean clean busytest install uninstall