| Index: trunk/tools/mwmultiversion/multiversion/getMWVersion |
| — | — | @@ -3,7 +3,8 @@ |
| 4 | 4 | error_reporting( 0 ); |
| 5 | 5 | // This script prints the MW version associated with a specified wikidb. |
| 6 | 6 | if ( count( $argv ) < 2 ) { |
| 7 | | - die( "Usage: getMWVersion <dbname> \n" ); |
| | 7 | + print "Usage: getMWVersion <dbname> \n"; |
| | 8 | + exit( 1 ); |
| 8 | 9 | } |
| 9 | 10 | /** |
| 10 | 11 | * Prints the MW version associated with a specified wikidb (as listed e.g. in all.dblist). |
| — | — | @@ -23,4 +24,4 @@ |
| 24 | 25 | die( "Unable to open wikiversions.cdb.\n" ); |
| 25 | 26 | } |
| 26 | 27 | |
| 27 | | -echo getWikiVersion( $argv[1] ); |
| | 28 | +echo getWikiVersion( $argv[1] ) . "\n"; |