summaryrefslogtreecommitdiff
path: root/Documentation/howto-index.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-25 07:28:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-25 07:28:18 (GMT)
commite6fc2346c17b9a4ee274d509429042eec9c14db5 (patch)
tree90c552f6a80049e1813c79a30d9e10f47f37772f /Documentation/howto-index.sh
parent628894b26dbfd4e3619eba0996f7da3f69e7dc5b (diff)
downloadgit-e6fc2346c17b9a4ee274d509429042eec9c14db5.zip
git-e6fc2346c17b9a4ee274d509429042eec9c14db5.tar.gz
git-e6fc2346c17b9a4ee274d509429042eec9c14db5.tar.bz2
Link howto documents from the main git.txt documentation.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/howto-index.sh')
-rwxr-xr-xDocumentation/howto-index.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/howto-index.sh b/Documentation/howto-index.sh
new file mode 100755
index 0000000..3a6afb9
--- /dev/null
+++ b/Documentation/howto-index.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+cat <<\EOF
+GIT Howto Index
+===============
+
+Here is a collection of mailing list postings made by various
+people describing how they use git in their workflow.
+
+EOF
+
+for txt
+do
+ title=`expr "$txt" : '.*/\(.*\)\.txt$'`
+ from=`sed -ne '
+ /^$/q
+ /^From:[ ]/{
+ s///
+ s/^[ ]*//
+ s/[ ]*$//
+ s/^/by /
+ p
+ }' "$txt"`
+ echo "
+ * link:$txt[$title] $from"
+
+done