bd933b36d410c2a30b5ec59da6f6b845b7ecb2e9
[hdw-linux/hdw-linux.git] / packages / devel / git / git
1 # hdw - linux git package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] latest
6 # [S] 3-4
7 # [D] git-latest.tar.gz http://www.codemonkey.org.uk/projects/git-snapshots/git/
8 # [D] git-changes-script http://www.kernel.org/pub/linux/kernel/people/jgarzik/
9 # [D] git-new-branch http://www.kernel.org/pub/linux/kernel/people/jgarzik/
10
11 install_conf="prefix=$prefix $install_conf"
12
13 post_install()  {
14         #some extra scripts
15         for i in git-changes-script git-new-branch; do
16                 install -m 0755 $archdir/$i $prefix/bin
17         done
18         # patching git documentation
19         sed -i 's%link:howto-index.html%link:../howto%' Documentation/git.txt
20         # installing documentation
21         rm -rf $docdir ; mkdir -p $docdir/{html,ascii}
22         for i in Documentation/git*.txt; do
23                 asciidoc -b html4 -d manpage $i
24                 install -m 0644 $i $docdir/ascii
25                 install -m 0644 `echo $i | sed 's/.txt/.html/'` $docdir/html
26         done
27         for i in cvs-migration tutorial glossary diff-format diff-options \
28                 diffcore pack-protocol hooks pull-fetch-param \
29                 repository-layout; do
30                 asciidoc Documentation/$i.txt
31                 install -m 0644 Documentation/$i.txt $docdir/ascii
32                 install -m 0644 Documentation/$i.html $docdir/html
33         done
34         cp -r Documentation/{howto,technical} $docdir
35                 }