From c5f4ba1b1b27a6879855127dcd4947a081e0d249 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 10 Aug 2022 00:21:09 +0200 Subject: Makefile: Ugly hack to get a "plain" Markdown version of README Distribution packages reasonably expect to have a human-readable Markdown version of the README under /usr/share/doc/, but all we have right now is a heavily web-oriented version. Introduce a ugly hack to strip web-oriented parts from the current README and install it. It should probably work the other way around: a human-readable README could be used as a source for the web page. But cgit needs a file that's in the tree, not something that can be built, and https://passt.top/ is based on cgit. It should eventually be doable to work around this in cgit, instead. Reported-by: Benson Muite Signed-off-by: Stefano Brivio --- test/prepare-distro-img.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/prepare-distro-img.sh') diff --git a/test/prepare-distro-img.sh b/test/prepare-distro-img.sh index aeb97a0..46bc126 100755 --- a/test/prepare-distro-img.sh +++ b/test/prepare-distro-img.sh @@ -1,7 +1,7 @@ #! /bin/sh -e IMG="$1" -PASST_FILES="$(echo ../*.c ../*.h ../*.sh ../*.1 ../Makefile)" +PASST_FILES="$(echo ../*.c ../*.h ../*.sh ../*.1 ../Makefile ../README.md)" virt-edit -a $IMG /lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g' -- cgit v1.2.3