Source: clojure Version: 1.8.0-2 Severity: normal debian/rules is trying to set the HTML title of changes.html which then becomes /usr/share/doc/clojure/changelog.html.gz, but the logic is flawed. This might work better: sed -i'' -e 's/@TITLE@/$(shell sed -n '/^# /{s///p;q}' changes.md)/g'