Mediawiki Version Checker

From S23Wiki
Jump to: navigation, search

A little bash script to check for mediawiki versions.

#/bin/bash
# Mediawiki Version Checker by mutante
# a little bash script/alias that i use to check for latest mediawiki version,
# so i dont forget updating anymore (if you want to go extreme put in /etc/profile :))
# bash chaos for fun, you need "boxes" installed, dont take too serious
# if there was an RSS feed for version changes i wouldnt need to use this mess :)
clear

echo -e "Mediawiki Version Checker\nby S23\n\n`ddate`\naka. `date`\n\nLocally installed is mediawiki version: `grep wgVersion /var/www/w/includes/DefaultSettings.php | cut  -f2 -d "'"`" | boxes -d spring

echo "Getting versions from online sites. This may take a little while..."

echo -e "current stable versions for download are:\n`lynx -dump http://www.mediawiki.org/wiki/MediaWiki | grep -A4 "Current Versions" | tail -n3`\ncurrent CVS version is `lynx -dump http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/includes/DefaultSettings.php?view=markup | grep "wgVersion" | cut  -f2 -d "'"`" | boxes -d html

echo -e "meta.wikimedia currently uses mediawiki version: `lynx -dump http://meta.wikimedia.org/wiki/Special:Version | grep "MediaWiki:" | cut -f2 -d ":"`\n  en.wikipedia currently uses mediawiki version: `lynx -dump http://en.wikipedia.org/wiki/Special:Version | grep "MediaWiki:" | cut -f2 -d ":"`\n  de.wikipedia currently uses mediawiki version: `lynx -dump http://de.wikipedia.org/wiki/Special:Version | grep "MediaWiki:" | cut -f2 -d ":"`" | boxes -d html

echo -e "Get the latest mediawiki version from http://www.mediawiki.org/wiki/MediaWiki\nThis script: http://s23.org/wikiversion.sh.txt - Fnord - http://s23.org"

# 23