Skip to content

Commit ac22de9

Browse files
committed
scripts: import cd2nroff from curl
From curl's commit b0009d0216a09a3e0ffa34fdb Build it in the makefile
1 parent 6b52fa5 commit ac22de9

File tree

3 files changed

+591
-2
lines changed

3 files changed

+591
-2
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,16 @@ COMPLETION_FILES=completions/_trurl.zsh
4444
INSTALL ?= install
4545
PYTHON3 ?= python3
4646

47+
all: $(TARGET) $(MANUAL)
48+
4749
$(TARGET): $(OBJS)
4850
$(CC) $(LDFLAGS) $(OBJS) -o $(TARGET) $(LDLIBS)
4951

5052
trurl.o: trurl.c version.h
5153

54+
$(MANUAL): trurl.md
55+
./scripts/cd2nroff trurl.md > $(MANUAL)
56+
5257
.PHONY: install
5358
install:
5459
$(INSTALL) -d $(DESTDIR)$(BINDIR)
@@ -64,7 +69,7 @@ install:
6469

6570
.PHONY: clean
6671
clean:
67-
rm -f $(OBJS) $(TARGET) $(COMPLETION_FILES)
72+
rm -f $(OBJS) $(TARGET) $(COMPLETION_FILES) $(MANUAL)
6873

6974
.PHONY: test
7075
test: $(TARGET)

mkrelease

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ sed -ie "s/^Source: trurl \([0-9.]*\)/Source: trurl $version/" trurl.md
4646
sed -ie "s/\"[\.0-9]*\"/\"$version\"/" version.h
4747

4848
# render the manpage into nroff
49-
./curl/scripts/cd2nroff trurl.md > $rel/trurl.1
49+
./scripts/cd2nroff trurl.md > $rel/trurl.1
5050

5151
# create a release directory tree
5252
cp -p --parents $(git ls-files | grep -vE '^(.github/|.reuse/|.gitignore|LICENSES/)') $rel

0 commit comments

Comments
 (0)