8 test -d /doc
/git
/html
/.git ||
9 (cd / && git submodule update
--init doc
/git
/html
) ||
{
10 echo "Error: html pages in /doc/git/html/.git missing"
14 if test "$( cd /doc/git/html/ ; git config core.autocrlf )" != "true"
16 echo "Error: documentation must be checked out with core.autocrlf=true."
17 echo "If you have changes in the documentation, hit Ctrl-C NOW."
20 git config core.autocrlf true
&&
21 rm -rf *.html
*.txt howto
&&
23 echo "Could not fix documentation"
30 (test ! -d "$TMPDIR" ||
echo "Removing $TMPDIR" && rm -rf "$TMPDIR") &&
33 echo "Copying files" &&
34 (git
--git-dir=/doc
/git
/html
/.git log
--pretty=format
:%s
-1 HEAD
&&
35 mkdir
-p doc
/git
/html
&& cd doc
/git
/html
&&
36 git
--git-dir=/doc
/git
/html
/.git archive HEAD |
tar xf
-) &&
38 $
(ls {bin
,libexec
/git-core
}/git
* |
grep -v 'cvs\|shell\|archimport\|instaweb') \
39 bin
/{awk,basename.exe
,bash.exe
,bison.exe
,yacc,bunzip2
,bzip2.exe
,c_rehash
,\
40 cat.exe
,chmod.exe
,clear,cmp.exe
,cp.exe
,cut.exe
,cvs.exe
,date.exe
,diff.exe
,\
42 du.exe
,echo,egrep,env.exe
,expr.exe
,false.exe
,find.exe
,flex.exe
,gawk.exe
,grep.exe
,\
43 gunzip
,gzip.exe
,head.exe
,id.exe
,kill.exe
,less.exe
,libW11.dll
,ln.exe
,\
44 ls.exe
,m4.exe
,md5sum.exe
,mkdir.exe
,msys-1.0.dll
,msysltdl-3.dll
,mv.exe
,patch.exe
,\
45 patch.exe.manifest
,perl.exe
,printf,ps.exe
,pwd,rm.exe
,rmdir.exe
,rxvt.exe
,\
46 scp.exe
,sed.exe
,sh.exe
,sleep.exe
,sort.exe
,split.exe
,\
47 ssh-agent.exe
,ssh.exe
,ssh-add.exe
,ssh-keygen.exe
,ssh-keyscan.exe
,\
48 tail.exe
,tar.exe
,tee.exe
,touch.exe
,tr.exe
,true.exe
,uname.exe
,uniq.exe
,vi
,\
49 msys-perl5_8.dll
,lib
{apr
,aprutil
,expat
,neon
,z
,svn
}*.dll
,pthreadGC2.dll
,\
50 msys-crypto-0.9
.8.dll
,msys-regex-1.dll
,msys-ssl-0.9
.8.dll
,msys-minires.dll
,msys-z.dll
,\
51 openssl.exe
,vim
,wc.exe
,which,xargs.exe
,start
} lib
/engines
/ \
52 ssl
/ cmd
/ lib
/perl
5/ share
/bison
/ share
/git
* \
53 share
/vim
/vimrc
share
/vim
/vim73
/{filetype.vim
,ftoff.vim
,menu.vim
,optwin.vim
,\
55 autoload
/netrw.vim
,autoload
/netrwFileHandlers.vim
,autoload
/netrwSettings.vim
,\
56 plugin
/netrwPlugin.vim
,\
57 syntax
/c.vim
,syntax
/conf.vim
,syntax
/cpp.vim
,syntax
/diff.vim
,\
58 syntax
/gitcommit.vim
,syntax
/gitconfig.vim
,syntax
/gitrebase.vim
,syntax
/git.vim
,\
59 syntax
/nosyntax.vim
,syntax
/syncolor.vim
,syntax
/synload.vim
,syntax
/syntax.vim
,\
63 (test ! -f /lib
/Git.pm ||
cp -u /lib
/Git.pm lib
/perl
5/site_perl
/Git.pm
) &&
64 test -f lib
/perl
5/site_perl
/Git.pm
&&
65 gitmd5
=$
(md5sum bin
/git.exe | cut
-c 1-32) &&
67 if test -z "$DONT_REMOVE_BUILTINS"
69 md5sum {bin
,libexec
/git-core
}/git-
*.exe libexec
/git-core
/git.exe |
70 sed -n "s/^$gitmd5 \\*//p" > etc
/fileList-builtins.txt
&&
71 rm $
(cat etc
/fileList-builtins.txt
)
73 (cd /mingw
&& tar cf
- \
74 bin
/*{tcl
,tk
,wish
,gpg
,msmtp
,curl.exe
,*.crt
}* bin
/connect.exe \
75 bin
/*{libcurl
,libcrypto
,libssl
,libgsasl
,libiconv
}* \
77 lib
/{tcl
,tk
,dde
,reg
}* libexec
/gnupg
/) |
79 cp /mingw
/bin
/hd2u.exe bin
/dos2unix.exe
&&
80 md5sum /bin
/msys-1.0.dll
> etc
/msys-1.0.dll.md5
&&
81 strip bin
/{[a-fh-z
],g
[a-oq-z
]}*.exe libexec
/git-core
/*.exe
&&
82 cp /git
/contrib
/completion
/git-completion.bash etc
/ &&
83 cp /etc
/termcap etc
/ &&
84 cp /etc
/inputrc etc
/ &&
85 sed 's/ = \/mingw\// = \//' < /etc
/gitconfig
> etc
/gitconfig
&&
86 cp /share
/WinGit
/Git\ Bash.vbs .
&&
88 cp /src
/git-cheetah
/explorer
/git_shell_ext.dll git-cheetah
/ &&
89 cp /share
/WinGit
/ReleaseNotes.rtf .
&&
90 sed 's/^\. .*\(git-completion.bash\)/. \/etc\/\1/' \
91 < /etc
/profile
> etc
/profile
&&
92 cp /share
/resources
/git.ico etc
/ ||