r10323 - /man-cgi/extractor/generate-manpages-lists.sh
Author: jfs
Date: Tue Nov 5 22:57:53 2013
New Revision: 10323
URL: http://svn.debian.org/wsvn/?sc=1&rev=10323
Log:
Script to generate the list of manpages for all the releases present in the mirrordir
Added:
man-cgi/extractor/generate-manpages-lists.sh (with props)
Added: man-cgi/extractor/generate-manpages-lists.sh
URL: http://svn.debian.org/wsvn/man-cgi/extractor/generate-manpages-lists.sh?rev=10323&op=file
==============================================================================
--- man-cgi/extractor/generate-manpages-lists.sh (added)
+++ man-cgi/extractor/generate-manpages-lists.sh Tue Nov 5 22:57:53 2013
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+
+# This program uses the list-manpages-dist.sh to list how many
+# manpages are for each available release (by codename)
+
+
+# Source the configuration file
+ME=$0
+MYDIR="`dirname $ME`"
+
+. ${MYDIR}/config
+
+if [ ! -d "$MIRRORDIR" ] || [ ! -d "$MIRRORDIR/pool" ] ; then
+ echo "Cannot find a Debian mirror archive at $MIRRORDIR!" >&2
+ exit 1
+fi
+
+
+# Generate the list for all the releases available in the mirror dir
+for release in $MIRRORDIR/dists/*; do
+ if [ ! -L $release ] && [ -d $release ] ; then
+ releasename=`basename $release`
+ ${MYDIR}/list-manpages-dist.sh $releasename
+ fi
+done
+
+exit 0
Propchange: man-cgi/extractor/generate-manpages-lists.sh
------------------------------------------------------------------------------
svn:executable = *
Reply to: