All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Brulebois <kibi@debian.org>
To: linux-kernel@vger.kernel.org
Cc: trivial@kernel.org, Cyril Brulebois <kibi@debian.org>
Subject: [PATCH 3/4] Documentation/00-INDEX.sh: add script to help keeping the index up-to-date
Date: Sat, 23 Apr 2011 18:15:43 +0200	[thread overview]
Message-ID: <1303575344-10403-3-git-send-email-kibi@debian.org> (raw)
In-Reply-To: <1303575344-10403-1-git-send-email-kibi@debian.org>

Signed-off-by: Cyril Brulebois <kibi@debian.org>
---
 Documentation/00-INDEX.sh |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100755 Documentation/00-INDEX.sh

diff --git a/Documentation/00-INDEX.sh b/Documentation/00-INDEX.sh
new file mode 100755
index 0000000..31d92d2
--- /dev/null
+++ b/Documentation/00-INDEX.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Copyright 2011 Cyril Brulebois <kibi@debian.org>
+#
+# Try and keep the 00-INDEX file up-to-date.
+
+# List all entries below the 00-INDEX entry:
+documented=$(sed '1,/^00-INDEX$/d' 00-INDEX|grep -v '^\s'|sed 's,/$,,')
+
+# List all files/directories except 00-INDEX* and Makefile:
+present=$(ls -1|grep -v '^00-INDEX'|grep -v '^Makefile$')
+
+echo "Undocumented:"
+for i in $present; do
+  if ! echo "$documented"|grep -qs "\<$i\>"; then
+    echo "  $i"
+  fi
+done
+
+echo "Documented but missing:"
+for i in $documented; do
+  if [ ! -e $i ]; then
+    echo "  $i"
+  fi
+done
-- 
1.7.4.4


  parent reply	other threads:[~2011-04-23 16:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-23 16:15 [PATCH 1/4] Documentation/00-INDEX: fix typo Cyril Brulebois
2011-04-23 16:15 ` [PATCH 2/4] Documentation/00-INDEX: improve description for sh/ Cyril Brulebois
2011-04-26 22:42   ` Randy Dunlap
2011-04-23 16:15 ` Cyril Brulebois [this message]
2011-04-23 16:33   ` [PATCH 3/4] Documentation/00-INDEX.sh: add script to help keeping the index up-to-date Randy Dunlap
2011-04-23 17:15     ` Cyril Brulebois
2011-04-23 18:33       ` Randy Dunlap
2011-04-23 21:05     ` Cyril Brulebois
2011-04-24 18:58       ` Randy Dunlap
2011-04-26 23:20         ` Randy Dunlap
2011-04-28 12:41           ` Cyril Brulebois
2011-04-28 12:44             ` [PATCH 3/4 v2] " Cyril Brulebois
2011-04-23 16:15 ` [PATCH 4/4] Documentation/00-INDEX: update with new top-level files Cyril Brulebois
2011-04-26 22:44   ` Randy Dunlap
2011-04-26 22:42 ` [PATCH 1/4] Documentation/00-INDEX: fix typo Randy Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1303575344-10403-3-git-send-email-kibi@debian.org \
    --to=kibi@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.