Author: jfs
Date: Wed Oct 30 01:26:55 2013
New Revision: 10291
URL: http://svn.debian.org/wsvn/?sc=1&rev=10291
Log:
Small script to count the manual pages per distribution
Added:
man-cgi/extractor/count-manpages-archive.sh (with props)
Added: man-cgi/extractor/count-manpages-archive.sh
URL:
http://svn.debian.org/wsvn/man-cgi/extractor/count-manpages-archive.sh?rev=10291&op=file
==============================================================================
--- man-cgi/extractor/count-manpages-archive.sh (added)
+++ man-cgi/extractor/count-manpages-archive.sh Wed Oct 30 01:26:55 2013
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+# This program counts the manpages available in the archive for the man.cgi
+# script
+#
+
+. ./config
+
+for i in ${EXTRACTORDIR}/manpages-dists/* ; do
+ if [ -d "$i" ] ; then
+ distribution=`basename $i`
+ #MANPAGES=`find $i -type l -a \( -name "*.*" -o -name "*.*.gz"
\) -a -path "*/usr/share/man*" | wc -l `
+ MANPAGES=`find $i -type l -a -path "*/usr/share/man*" | wc -l `
+ echo "$distribution $MANPAGES"
+ fi
+done
+
+
+exit 0
+
Propchange: man-cgi/extractor/count-manpages-archive.sh
------------------------------------------------------------------------------
svn:executable = *
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]