From 83d2170442144a1b2f623b32a1291befaf59c968 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 26 Apr 2010 16:56:10 -0700 Subject: GNUmakefile: fix backwards compat links for manpages --- GNUmakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 67d9fb7..2136adc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -187,10 +187,11 @@ doc: .document $(ext)/unicorn_http.c NEWS ChangeLog $(MAKE) -C Documentation install-html install-man install -m644 $(man1_paths) doc/ cd doc && for i in $(base_bins); do \ - $(RM) $${i}.1.html; \ - ln $${i}_1.html $${i}.1.html; \ + $(RM) 1.html $${i}.1.html; \ sed -e '/"documentation">/r man1/'$$i'.1.html' \ - < $${i}.1.html > tmp && mv tmp $${i}_1.html; done + < $${i}_1.html > tmp && mv tmp $${i}_1.html; \ + ln $${i}_1.html $${i}.1.html; \ + done $(RUBY) -i -p -e \ '$$_.gsub!("",%q{\&$(call atom,$(cgit_atom))})' \ doc/ChangeLog.html -- cgit v1.2.3-24-ge0c7