Skip to content

Commit

Permalink
Format readme in deb file
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcooper committed May 3, 2018
1 parent d281e16 commit 19ce776
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ deb: $(EX_NAME) all
install -vTsm 0755 $(EX_NAME) $(DPKG_DIR)/usr/share/fakehostname/example-prog

install -vd $(DPKG_DIR)/usr/share/doc/fakehostname
install -vm 0644 README.md $(DPKG_DIR)/usr/share/doc/fakehostname
if which pandoc unidecode; then \
pandoc -f markdown -t plain --columns=80 README.md \
| sed 's/LICENSE/copyright/' | unidecode -e utf8 > /tmp/fakehostname-readme; \
else \
cp README.md /tmp/fakehostname-readme; \
fi
install -vTm 0644 /tmp/fakehostname-readme $(DPKG_DIR)/usr/share/doc/fakehostname/readme
rm /tmp/fakehostname-readme
install -vTm 0644 LICENSE $(DPKG_DIR)/usr/share/doc/fakehostname/copyright

install -vd $(DPKG_DIR)/DEBIAN
Expand Down

0 comments on commit 19ce776

Please sign in to comment.