diff options
author | maierd <d.maier94@web.de> | 2023-05-29 11:22:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-29 09:22:15 +0000 |
commit | d94cb6be99b098b0084d0a54dc4e655cd9c0e47c (patch) | |
tree | 54a3e05074ecb26d5394f5ec4cd11bdc2eb5ab5b | |
parent | e3746e49a117ebf8d1f43715554c5a1cf8d4a116 (diff) | |
download | alacritty-d94cb6be99b098b0084d0a54dc4e655cd9c0e47c.tar.gz alacritty-d94cb6be99b098b0084d0a54dc4e655cd9c0e47c.zip |
Fix Makefile manpage generation
Signed-off-by: Dennis Maier <d.maier94@web.de>
Co-authored-by: Christian Duerr <contact@christianduerr.com>
-rw-r--r-- | .github/workflows/release.yml | 2 | ||||
-rw-r--r-- | Makefile | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed417a65..3eedddce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,8 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Install dependencies + run: brew install scdoc - name: Install ARM target run: rustup update && rustup target add aarch64-apple-darwin - name: Test @@ -2,8 +2,8 @@ TARGET = alacritty ASSETS_DIR = extra RELEASE_DIR = target/release -MANPAGE = $(ASSETS_DIR)/alacritty.man -MANPAGE-MSG = $(ASSETS_DIR)/alacritty-msg.man +MANPAGE = $(ASSETS_DIR)/man/alacritty.1.scd +MANPAGE-MSG = $(ASSETS_DIR)/man/alacritty-msg.1.scd CONFIGFILE = alacritty.yml TERMINFO = $(ASSETS_DIR)/alacritty.info COMPLETIONS_DIR = $(ASSETS_DIR)/completions @@ -46,8 +46,8 @@ $(APP_NAME)-%: $(TARGET)-% @mkdir -p $(APP_BINARY_DIR) @mkdir -p $(APP_EXTRAS_DIR) @mkdir -p $(APP_COMPLETIONS_DIR) - @gzip -c $(MANPAGE) > $(APP_EXTRAS_DIR)/alacritty.1.gz - @gzip -c $(MANPAGE-MSG) > $(APP_EXTRAS_DIR)/alacritty-msg.1.gz + @scdoc < $(MANPAGE) | gzip -c > $(APP_EXTRAS_DIR)/alacritty.1.gz + @scdoc < $(MANPAGE-MSG) | gzip -c > $(APP_EXTRAS_DIR)/alacritty-msg.1.gz @tic -xe alacritty,alacritty-direct -o $(APP_EXTRAS_DIR) $(TERMINFO) @cp -fRp $(APP_TEMPLATE) $(APP_DIR) @cp -fp $(APP_BINARY) $(APP_BINARY_DIR) |