dp_spip_versions 754 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
#! /bin/bash

if [ "$1" = "autoconf" ]; then
	echo yes
	exit 0
fi

if [ "$1" = "config" ]; then
	cat << EOM
graph_title Versions of Spip
graph_category alternc
graph_args --base 1000 -l 0
spip16.label 1.6
spip17.label 1.7
spip18.label 1.8
spip19.label 1.9
spip20.label 2.0
spip21.label 2.1
spip30.label 3.0
EOM
	exit 0
fi

FILENAME=/var/alternc/cms-versions.csv
echo spip16.value $(grep ';spip;1.6' $FILENAME | wc -l)
echo spip17.value $(grep ';spip;1.7' $FILENAME | wc -l)
echo spip18.value $(grep ';spip;1.8' $FILENAME | wc -l)
echo spip19.value $(grep ';spip;1.9' $FILENAME | wc -l)
echo spip20.value $(grep ';spip;2.0' $FILENAME | wc -l)
echo spip21.value $(grep ';spip;2.1' $FILENAME | wc -l)
echo spip30.value $(grep ';spip;3.0' $FILENAME | wc -l)