]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/install-webdoc.sh
fetch-pack: -k option to keep downloaded pack.
[thirdparty/git.git] / Documentation / install-webdoc.sh
CommitLineData
e6fc2346
JH
1#!/bin/sh
2
3T="$1"
4
54c2533d 5for h in *.html *.txt howto/*.txt howto/*.html
e6fc2346 6do
922fb98e 7 diff -u -I'Last updated [0-9][0-9]-[A-Z][a-z][a-z]-' "$T/$h" "$h" || {
e6fc2346
JH
8 echo >&2 "# install $h $T/$h"
9 rm -f "$T/$h"
10 mkdir -p `dirname "$T/$h"`
11 cp "$h" "$T/$h"
12 }
13done
14strip_leading=`echo "$T/" | sed -e 's|.|.|g'`
54c2533d 15for th in "$T"/*.html "$T"/*.txt "$T"/howto/*.txt "$T"/howto/*.html
e6fc2346
JH
16do
17 h=`expr "$th" : "$strip_leading"'\(.*\)'`
18 case "$h" in
19 index.html) continue ;;
20 esac
21 test -f "$h" && continue
22 echo >&2 "# rm -f $th"
23 rm -f "$th"
24done
25ln -sf git.html "$T/index.html"