Skip to content
Newer
Older
100755 40 lines (37 sloc) 754 Bytes
e6fc234 Link howto documents from the main git.txt documentation.
Junio C Hamano authored Aug 25, 2005
1 #!/bin/sh
2
3 T="$1"
4
530e741 @gitster Start preparing the API documents.
authored Nov 24, 2007
5 for h in \
6 *.txt *.html \
7 howto/*.txt howto/*.html \
8 technical/*.txt technical/*.html \
761e742 @npitre Documentation: move RelNotes into a directory of their own
npitre authored Sep 6, 2010
9 RelNotes/*.txt *.css
e6fc234 Link howto documents from the main git.txt documentation.
Junio C Hamano authored Aug 25, 2005
10 do
530e741 @gitster Start preparing the API documents.
authored Nov 25, 2007
11 if test ! -f "$h"
12 then
13 : did not match
14 elif test -f "$T/$h" &&
7e42332 @gitster install-webdoc: filter timestamp-only changes correctly
authored Sep 1, 2010
15 $DIFF -u -I'^Last updated ' "$T/$h" "$h"
52db049 Documentation/Makefile: create tarballs for the man pages and html files
Tilman Sauerbeck authored May 18, 2006
16 then
17 :; # up to date
18 else
e6fc234 Link howto documents from the main git.txt documentation.
Junio C Hamano authored Aug 25, 2005
19 echo >&2 "# install $h $T/$h"
20 rm -f "$T/$h"
21 mkdir -p `dirname "$T/$h"`
22 cp "$h" "$T/$h"
52db049 Documentation/Makefile: create tarballs for the man pages and html files
Tilman Sauerbeck authored May 18, 2006
23 fi
e6fc234 Link howto documents from the main git.txt documentation.
Junio C Hamano authored Aug 25, 2005
24 done
25 strip_leading=`echo "$T/" | sed -e 's|.|.|g'`
530e741 @gitster Start preparing the API documents.
authored Nov 25, 2007
26 for th in \
27 "$T"/*.html "$T"/*.txt \
28 "$T"/howto/*.txt "$T"/howto/*.html \
29 "$T"/technical/*.txt "$T"/technical/*.html
e6fc234 Link howto documents from the main git.txt documentation.
Junio C Hamano authored Aug 25, 2005
30 do
31 h=`expr "$th" : "$strip_leading"'\(.*\)'`
32 case "$h" in
3a4e6c7 @gitster install-webdoc: keep installed RelNotes-*.txt
authored Sep 9, 2010
33 RelNotes-*.txt | index.html) continue ;;
e6fc234 Link howto documents from the main git.txt documentation.
Junio C Hamano authored Aug 25, 2005
34 esac
35 test -f "$h" && continue
36 echo >&2 "# rm -f $th"
37 rm -f "$th"
38 done
39 ln -sf git.html "$T/index.html"
Something went wrong with that request. Please try again.