]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/install-webdoc.sh
autoconf: Add tests for memmem, strtoumax and mkdtemp functions
[thirdparty/git.git] / Documentation / install-webdoc.sh
CommitLineData
e6fc2346
JH
1#!/bin/sh
2
3T="$1"
4
8ce9d83b 5for h in *.html *.txt howto/*.txt howto/*.html RelNotes-*.txt *.css
e6fc2346 6do
52db0495
TS
7 if test -f "$T/$h" &&
8 diff -u -I'Last updated [0-9][0-9]-[A-Z][a-z][a-z]-' "$T/$h" "$h"
9 then
10 :; # up to date
11 else
e6fc2346
JH
12 echo >&2 "# install $h $T/$h"
13 rm -f "$T/$h"
14 mkdir -p `dirname "$T/$h"`
15 cp "$h" "$T/$h"
52db0495 16 fi
e6fc2346
JH
17done
18strip_leading=`echo "$T/" | sed -e 's|.|.|g'`
54c2533d 19for th in "$T"/*.html "$T"/*.txt "$T"/howto/*.txt "$T"/howto/*.html
e6fc2346
JH
20do
21 h=`expr "$th" : "$strip_leading"'\(.*\)'`
22 case "$h" in
23 index.html) continue ;;
24 esac
25 test -f "$h" && continue
26 echo >&2 "# rm -f $th"
27 rm -f "$th"
28done
29ln -sf git.html "$T/index.html"