Merge refs/heads/master from .
This commit is contained in:
commit
1a965f3363
@ -45,7 +45,7 @@ git-diff-%.txt: diff-format.txt diff-options.txt
|
|||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.xml *.html *.1 *.7 howto-index.txt
|
rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html
|
||||||
|
|
||||||
%.html : %.txt
|
%.html : %.txt
|
||||||
asciidoc -b xhtml11 -d manpage $<
|
asciidoc -b xhtml11 -d manpage $<
|
||||||
@ -74,5 +74,12 @@ howto-index.html: howto-index.txt
|
|||||||
|
|
||||||
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
|
install-webdoc : html
|
||||||
sh ./install-webdoc.sh $(WEBDOC_DEST)
|
sh ./install-webdoc.sh $(WEBDOC_DEST)
|
||||||
|
@ -41,7 +41,14 @@ do
|
|||||||
q
|
q
|
||||||
}' "$txt"`
|
}' "$txt"`
|
||||||
|
|
||||||
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
|
||||||
$abstract
|
$abstract
|
||||||
|
|
||||||
"
|
"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
T="$1"
|
T="$1"
|
||||||
|
|
||||||
for h in *.html howto/*.txt
|
for h in *.html howto/*.txt howto/*.html
|
||||||
do
|
do
|
||||||
diff -u "$T/$h" "$h" || {
|
diff -u "$T/$h" "$h" || {
|
||||||
echo >&2 "# install $h $T/$h"
|
echo >&2 "# install $h $T/$h"
|
||||||
@ -12,7 +12,7 @@ do
|
|||||||
}
|
}
|
||||||
done
|
done
|
||||||
strip_leading=`echo "$T/" | sed -e 's|.|.|g'`
|
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
|
do
|
||||||
h=`expr "$th" : "$strip_leading"'\(.*\)'`
|
h=`expr "$th" : "$strip_leading"'\(.*\)'`
|
||||||
case "$h" in
|
case "$h" in
|
||||||
|
Loading…
Reference in New Issue
Block a user