summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3459c2c)
Signed-off-by: Junio C Hamano <junkio@cox.net>
- rm -f *.xml *.html *.1 *.7 howto-index.txt
+ rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html
%.html : %.txt
asciidoc -b xhtml11 -d manpage $<
%.html : %.txt
asciidoc -b xhtml11 -d manpage $<
WEBDOC_DEST = /pub/software/scm/git/docs
WEBDOC_DEST = /pub/software/scm/git/docs
+DOC_HTML += howto/revert-branch-rebase.html
+
+$(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
+ rm -f $@+ $@
+ sed -e '1,/^$$/d' $? | asciidoc -b xhtml11 - >$@+
+ mv $@+ $@
+
install-webdoc : html
sh ./install-webdoc.sh $(WEBDOC_DEST)
install-webdoc : html
sh ./install-webdoc.sh $(WEBDOC_DEST)
- echo "* link:$txt[$title] $from
+ if grep 'Content-type: text/asciidoc' >/dev/null $txt
+ then
+ file=`expr "$txt" : '\(.*\)\.txt$'`.html
+ else
+ file="$txt"
+ fi
+
+ echo "* link:$file[$title] $from
-for h in *.html howto/*.txt
+for h in *.html howto/*.txt howto/*.html
do
diff -u "$T/$h" "$h" || {
echo >&2 "# install $h $T/$h"
do
diff -u "$T/$h" "$h" || {
echo >&2 "# install $h $T/$h"
}
done
strip_leading=`echo "$T/" | sed -e 's|.|.|g'`
}
done
strip_leading=`echo "$T/" | sed -e 's|.|.|g'`
-for th in "$T"/*.html "$T"/howto/*.txt
+for th in "$T"/*.html "$T"/howto/*.txt "$T"/howto/*.html
do
h=`expr "$th" : "$strip_leading"'\(.*\)'`
case "$h" in
do
h=`expr "$th" : "$strip_leading"'\(.*\)'`
case "$h" in