From e679a631b408ea4a69ca587b02d03774f090296c Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 8 Jun 2024 14:21:04 +0000 Subject: [PATCH 1/2] CMake: Install adb man page --- vendor/CMakeLists.adb.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vendor/CMakeLists.adb.txt b/vendor/CMakeLists.adb.txt index 7f59783..5feef00 100644 --- a/vendor/CMakeLists.adb.txt +++ b/vendor/CMakeLists.adb.txt @@ -213,3 +213,5 @@ if(APPLE) "-framework CoreFoundation" "-framework IOKit") endif() + +install(FILES adb/docs/user/adb.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) From 3fead709222b5ce8b962eda58ba5c3a458633160 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 8 Jun 2024 14:21:38 +0000 Subject: [PATCH 2/2] CI: Generate adb man page from markdown file using pandoc --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3562935..f67cf0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: DEBIAN_FRONTEND=noninteractive sudo apt-get install -yq \ ${{ matrix.pkgs }} cmake git golang libbrotli-dev \ libgtest-dev liblz4-dev libpcre2-dev libprotobuf-dev libunwind-dev \ - libusb-1.0-0-dev libzstd-dev make pkg-config + libusb-1.0-0-dev libzstd-dev make pandoc pkg-config - name: checkout uses: actions/checkout@v4 with: @@ -26,6 +26,10 @@ jobs: run: | cd vendor/boringssl go mod vendor + - name: generate man page + run: | + cd vendor/adb/docs/user + pandoc -s -t man adb.1.md -o adb.1 - name: build & install run: | mkdir build && cd build