From 5ca28b28efb9c7a57b57f2c9fb1d75069231a595 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Mon, 4 Aug 2014 14:20:44 +0200 Subject: [PATCH] Minor changes and bumped to version 0.3.1 --- HISTORY | 4 ++++ wie.php | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 93871c6..75d22b7 100644 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,7 @@ +0.3.1 - 2014-08-04 + Minor changes, changed some variables to constant and + added a constant for the version number. + 0.3 - 2014-08-04 Added a check to see whatever the article string is in UTF-8 or not. If it is in UTF-8, use a specific function diff --git a/wie.php b/wie.php index 234dd83..9935993 100755 --- a/wie.php +++ b/wie.php @@ -17,9 +17,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +define("VERSION", "0.3.1"); +define("PROGNAME", $argv[0]); $defaultLang = "en"; // default language -$progName = $argv[0]; @@ -85,8 +86,8 @@ print (wordwrap($string, 65, "\n") . "\n"); // misc functions function usage() { - print "Wikipedia ingress extractor (wie), version 0.2\n"; - print "Usage: $GLOBALS[progName] [--lang=sv] article\n"; + print "Wikipedia ingress extractor (wie), version " . VERSION . "\n"; + print "Usage: " . PROGNAME . " [--lang=sv] article\n"; print "Default language if none specified is $GLOBALS[defaultLang].\n"; print "Remember to quote the article if there's more than one word,\n"; print "for example Roger Bacon as 'Roger Bacon'.\n";