From 495f6919fbbc645d2c64afe6169cfb1e9ed1abec Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sat, 29 Sep 2007 17:12:03 +0200 Subject: [PATCH] WinGit: include html pages from official git.git's html branch It is assumed that a matching version of the html documentation is available as the HEAD of /doc/git/html/.git. If not an error will be reported. This patch doesn't include a mechanism to fetch the html pages to /doc/git/html. The html pages should be at the right place, which can be handled as a submodule of msysgit. Signed-off-by: Steffen Prohaska --- share/WinGit/release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/WinGit/release.sh b/share/WinGit/release.sh index 5ab876a8..8a3c197f 100644 --- a/share/WinGit/release.sh +++ b/share/WinGit/release.sh @@ -5,6 +5,8 @@ test -z "$1" && { exit 1 } +test -d /doc/git/html/.git || { echo "Error: html pages in /doc/git/html/.git missing"; exit 1; } + TARGET="$HOME"/WinGit-$1.exe OPTS7="-m0=lzma -mx=9 -md=64M" TARGET7=tmp.7z @@ -21,6 +23,9 @@ mkdir "$TMPDIR" && cp uninstaller.exe "$TMPDIR"/bin) && cd "$TMPDIR" && echo "Copying files" && +(git --git-dir=/doc/git/html/.git log --pretty=format:%s -1 HEAD && + mkdir -p doc/git/html && cd doc/git/html && + git --git-dir=/doc/git/html/.git archive HEAD | tar xf -) && (cd / && tar cf - bin/{git*,awk,basename.exe,bash.exe,bunzip2,bzip2.exe,\ cat.exe,chmod.exe,clear,cmp.exe,cp.exe,cpio,cut.exe,cvs.exe,date.exe,diff.exe,\ du.exe,echo,egrep,env.exe,expr.exe,false.exe,find.exe,gawk.exe,grep.exe,\ -- 2.11.4.GIT