]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
added git & asciidoc
authorhackbard <hackbard>
Tue, 13 Sep 2005 23:11:11 +0000 (23:11 +0000)
committerhackbard <hackbard>
Tue, 13 Sep 2005 23:11:11 +0000 (23:11 +0000)
packages/devel/git/git [new file with mode: 0644]
packages/hackbard/asciidoc/asciidoc [new file with mode: 0644]

diff --git a/packages/devel/git/git b/packages/devel/git/git
new file mode 100644 (file)
index 0000000..bd933b3
--- /dev/null
@@ -0,0 +1,35 @@
+# hdw - linux git package
+#
+# author: hackbard@hackdaworld.dyndns.org
+#
+# [V] latest
+# [S] 3-4
+# [D] git-latest.tar.gz http://www.codemonkey.org.uk/projects/git-snapshots/git/
+# [D] git-changes-script http://www.kernel.org/pub/linux/kernel/people/jgarzik/
+# [D] git-new-branch http://www.kernel.org/pub/linux/kernel/people/jgarzik/
+
+install_conf="prefix=$prefix $install_conf"
+
+post_install() {
+       #some extra scripts
+       for i in git-changes-script git-new-branch; do
+               install -m 0755 $archdir/$i $prefix/bin
+       done
+       # patching git documentation
+       sed -i 's%link:howto-index.html%link:../howto%' Documentation/git.txt
+       # installing documentation
+       rm -rf $docdir ; mkdir -p $docdir/{html,ascii}
+       for i in Documentation/git*.txt; do
+               asciidoc -b html4 -d manpage $i
+               install -m 0644 $i $docdir/ascii
+               install -m 0644 `echo $i | sed 's/.txt/.html/'` $docdir/html
+       done
+       for i in cvs-migration tutorial glossary diff-format diff-options \
+               diffcore pack-protocol hooks pull-fetch-param \
+               repository-layout; do
+               asciidoc Documentation/$i.txt
+               install -m 0644 Documentation/$i.txt $docdir/ascii
+               install -m 0644 Documentation/$i.html $docdir/html
+       done
+       cp -r Documentation/{howto,technical} $docdir
+               }
diff --git a/packages/hackbard/asciidoc/asciidoc b/packages/hackbard/asciidoc/asciidoc
new file mode 100644 (file)
index 0000000..f745cee
--- /dev/null
@@ -0,0 +1,15 @@
+# hdw-linux asciidoc extensions
+
+# author: hackbard
+
+# [S] 3-3
+# [V] 7.0.2
+# [D] asciidoc-7.0.2.tar.gz http://www.methods.co.nz/asciidoc/
+
+build_main()   {
+       install -m 0755 asciidoc.py $prefix/bin/asciidoc.py
+       ln -sfv asciidoc.py $prefix/bin/asciidoc
+       mkdir -p $root/etc/asciidoc
+       cp -v *.conf $root/etc/asciidoc/
+       cp -r stylesheets images filters $root/etc/asciidoc/
+               }