[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r10327 - /man-cgi/extractor/count-manpages-archive.sh



Author: jfs
Date: Wed Nov  6 20:22:59 2013
New Revision: 10327

URL: http://svn.debian.org/wsvn/?sc=1&rev=10327
Log:
Count the manpages properly, including X11R6. Also, import the configuration using full pathname

Modified:
    man-cgi/extractor/count-manpages-archive.sh

Modified: man-cgi/extractor/count-manpages-archive.sh
URL: http://svn.debian.org/wsvn/man-cgi/extractor/count-manpages-archive.sh?rev=10327&op=diff
==============================================================================
--- man-cgi/extractor/count-manpages-archive.sh	(original)
+++ man-cgi/extractor/count-manpages-archive.sh	Wed Nov  6 20:22:59 2013
@@ -4,14 +4,17 @@
 # script
 #
 
-. ./config
+
+ME=$0
+MYDIR="`dirname $ME`"
+
+. ${MYDIR}/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"
+		MANPAGES=`find $i  -type l -a \( -path "*/usr/share/man*" -o -path "*/usr/X11R6/man*" \) -a -name "*.gz" | wc -l `
+		echo "$MANPAGES manpages in release $distribution"
 	fi
 done
 


Reply to: