r10414 - /man-cgi/extractor/count-manpages-archive.sh
Author: jfs
Date: Sun May 25 13:20:46 2014
New Revision: 10414
URL: http://svn.debian.org/wsvn/?sc=1&rev=10414
Log:
Use DATADIR definition
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=10414&op=diff
==============================================================================
--- man-cgi/extractor/count-manpages-archive.sh (original)
+++ man-cgi/extractor/count-manpages-archive.sh Sun May 25 13:20:46 2014
@@ -10,11 +10,11 @@
. ${MYDIR}/config
-[ ! -e ${EXTRACTORDIR}/data/ ] && mkdir -p ${EXTRACTORDIR}/data/
+[ ! -e ${DATADIR} ] && mkdir -p ${DATADIR}
# Rotate stats file
-savelog -m 640 -c 7 ${EXTRACTORDIR}/data/stats
+savelog -m 640 -c 7 ${DATADIR}/stats
# Create a new stats file
-> ${EXTRACTORDIR}/data/stats
+> ${DATADIR}/stats
# Go through all distributions
for i in ${EXTRACTORDIR}/manpages-dists/* ; do
@@ -23,7 +23,7 @@
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"
# Add to stats files
- [ -e "${EXTRACTORDIR}/data/stats" ] && echo "$distribution $MANPAGES" >>${EXTRACTORDIR}/data/stats
+ [ -e "${DATADIR}/stats" ] && echo "$distribution $MANPAGES" >>${DATADIR}/stats
fi
done
Reply to: