8 test -d /doc
/git
/html
/.git ||
{ echo "Error: html pages in /doc/git/html/.git missing"; exit 1; }
10 if [ "$( cd /doc/git/html/ ; git config core.autocrlf )" != "true" ]
12 echo "Error: documentation must be checked out with core.autocrlf=true."
13 echo "Hint: fix this by"
14 echo " cd /doc/git/html"
15 echo " git config core.autocrlf true"
16 echo " rm -r *.html *.txt howto"
17 echo " git checkout -f"
23 (test ! -d "$TMPDIR" ||
echo "Removing $TMPDIR" && rm -rf "$TMPDIR") &&
26 echo "Copying files" &&
27 (git
--git-dir=/doc
/git
/html
/.git log
--pretty=format
:%s
-1 HEAD
&&
28 mkdir
-p doc
/git
/html
&& cd doc
/git
/html
&&
29 git
--git-dir=/doc
/git
/html
/.git archive HEAD |
tar xf
-) &&
31 $
(ls {bin
,libexec
/git-core
}/git
* |
grep -v 'cvs\|send-email\|shell\|archimport\|instaweb') \
32 bin
/{awk,basename.exe
,bash.exe
,bunzip2
,bzip2.exe
,c_rehash
,\
33 cat.exe
,chmod.exe
,clear,cmp.exe
,cp.exe
,cut.exe
,cvs.exe
,date.exe
,diff.exe
,\
34 du.exe
,echo,egrep,env.exe
,expr.exe
,false.exe
,find.exe
,gawk.exe
,grep.exe
,\
35 gunzip
,gzip.exe
,head.exe
,id.exe
,kill.exe
,less.exe
,libW11.dll
,ln.exe
,\
36 ls.exe
,md5sum.exe
,mkdir.exe
,msys-1.0.dll
,msysltdl-3.dll
,mv.exe
,patch.exe
,\
37 patch.exe.manifest
,perl.exe
,printf,ps.exe
,pwd,rm.exe
,rmdir.exe
,rxvt.exe
,\
38 scp.exe
,sed.exe
,sh.exe
,sleep.exe
,sort.exe
,split.exe
,\
39 ssh-agent.exe
,ssh.exe
,ssh-add.exe
,ssh-keygen.exe
,ssh-keyscan.exe
,\
40 tail.exe
,tar.exe
,tee.exe
,touch.exe
,tr.exe
,true.exe
,uname.exe
,uniq.exe
,vi
,\
41 msys-perl5_8.dll
,lib
{apr
,aprutil
,expat
,neon
,z
,svn
}*.dll
,pthreadGC2.dll
,\
42 msys-crypto-0.9
.8.dll
,msys-ssl-0.9
.8.dll
,msys-minires.dll
,msys-z.dll
,\
43 openssl.exe
,vim
,wc.exe
,which,xargs.exe
,start
} lib
/engines
/ \
44 ssl
/ cmd
/ lib
/perl
5/ share
/git
* \
45 share
/vim
/vimrc
share
/vim
/vim72
/{filetype.vim
,ftoff.vim
,menu.vim
,optwin.vim
,\
47 autoload
/netrw.vim
,autoload
/netrwFileHandlers.vim
,autoload
/netrwSettings.vim
,\
48 plugin
/netrwPlugin.vim
,\
49 syntax
/c.vim
,syntax
/conf.vim
,syntax
/cpp.vim
,syntax
/diff.vim
,\
50 syntax
/gitcommit.vim
,syntax
/syncolor.vim
,syntax
/synload.vim
,syntax
/syntax.vim
,\
54 (test ! -f /lib
/Git.pm ||
cp -u /lib
/Git.pm lib
/perl
5/site_perl
/Git.pm
) &&
55 test -f lib
/perl
5/site_perl
/Git.pm
&&
56 gitmd5
=$
(md5sum bin
/git.exe | cut
-c 1-32) &&
58 if test -z "$DONT_REMOVE_BUILTINS"
60 md5sum {bin
,libexec
/git-core
}/git-
*.exe |
61 sed -n "s/^$gitmd5 \\*//p" > etc
/fileList-builtins.txt
&&
62 rm $
(cat etc
/fileList-builtins.txt
)
64 (cd /mingw
&& tar cf
- bin
/*{tcl
,tk
,wish
,gpg
,curl.exe
,libcurl
,libiconv
}* \
65 lib
/*{tcl
,tk
}* libexec
/gnupg
/) |
67 strip bin
/{[a-fh-z
],g
[a-oq-z
]}*.exe libexec
/git-core
/*.exe
&&
68 cp /git
/contrib
/completion
/git-completion.bash etc
/ &&
69 cp /etc
/termcap etc
/ &&
70 cp /etc
/inputrc etc
/ &&
71 cp /etc
/gitconfig etc
/ &&
72 cp /share
/WinGit
/ReleaseNotes.rtf .
&&
73 sed 's/^\. .*\(git-completion.bash\)/. \/etc\/\1/' \
74 < /etc
/profile
> etc
/profile
&&
75 cp /share
/resources
/git.ico etc
/ ||