chiark / gitweb /
tg.sh: Check for read permissions of help files
[topgit.git] / Makefile
index 238d07d6a84e91e2c00605cff55afc534b6b11bc..1352d03fad6ceb36095b2cd8388172849b0914c9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,9 @@ tg $(commands_out) $(hooks_out): % : %.sh
        mv $@+ $@
 
 $(help_out): README
-       ./create-help.sh `echo $@ | sed -e 's/tg-//' -e 's/\.txt//'`
+       @CMD=`echo $@ | sed -e 's/tg-//' -e 's/\.txt//'` && \
+       echo '[HELP]' $$CMD && \
+       ./create-help.sh $$CMD
 
 install:: all
        install tg "$(bindir)"
@@ -35,7 +37,7 @@ install:: all
        install -d -m 755 "$(hooksdir)"
        install $(hooks_out) "$(hooksdir)"
        install -d -m 755 "$(sharedir)"
-       install $(help_out) "$(sharedir)"
+       install -m 644 $(help_out) "$(sharedir)"
 
 clean::
        rm -f tg $(commands_out) $(hooks_out) $(help_out)