r50548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50547‎ | r50548 | r50549 >
Date:16:19, 13 May 2009
Author:kim
Status:deferred
Tags:
Comment:
trademarks
Modified paths:
  • /trunk/wikiation/wikiation_check_isolation/LICENSE (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/compare_all.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/compare_db.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/compare_mw.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/create_and_ul.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/create_data.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/dl_and_check.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/dump_desc.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/load.sh (modified) (history)
  • /trunk/wikiation/wikiation_check_isolation/save.sh (modified) (history)

Diff [purge]

Index: trunk/wikiation/wikiation_check_isolation/LICENSE
@@ -1,5 +1,7 @@
22 This software, copyright (C) 2008-2009 by Wikiation. This software is developed by Kim Bruning.
 3+Copyright (C) 2009 Kim Bruning
34
 5+
46 Permission is hereby granted, free of charge, to any person obtaining a copy
57 of this software and associated documentation files (the "Software"), to deal
68 in the Software without restriction, including without limitation the rights to
Index: trunk/wikiation/wikiation_check_isolation/compare_mw.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33 #compare local mediawiki installation with our own copy
44
55 # This software, copyright (C) 2008-2009 by Wikiation.
Index: trunk/wikiation/wikiation_check_isolation/compare_db.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33 # compare database description directories created by
44 # dump_desc.sh, and write a report to current/
55
Index: trunk/wikiation/wikiation_check_isolation/create_data.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33 # This software, copyright (C) 2008-2009 by Wikiation.
44 # This software is developed by Kim Bruning.
55 #
Index: trunk/wikiation/wikiation_check_isolation/compare_all.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33
44 # This software, copyright (C) 2008-2009 by Wikiation.
55 # This software is developed by Kim Bruning.
@@ -41,3 +41,5 @@
4242 echo -e "$RED * $NC MediaWiki Database differences: "
4343 cat $current/dbdiff_report
4444 }
 45+
 46+exit ! ( -s $current/mwdiff_report || -s $current/dbdiff_report )
Index: trunk/wikiation/wikiation_check_isolation/dl_and_check.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33 #load data on a particular revision
44 # This software, copyright (C) 2008-2009 by Wikiation.
55 # This software is developed by Kim Bruning.
@@ -15,12 +15,21 @@
1616
1717 target=$1
1818
19 -if test -z $target; then
20 - echo "syntax: wikiation_check_isolation <revision name>"
 19+if test -z $1; then
 20+ echo "syntax: check_isolation <revision name>"
2121 exit 0
2222 fi
2323
24 -target_dir="/var/www/revisions/$target"
 24+
 25+if echo $1 | grep "/" ; then
 26+ target=`basename $1`
 27+ target_dir=`dirname $1`
 28+else
 29+ target=$1
 30+ target_dir="/var/www/revisions/$target";
 31+fi
 32+
 33+
2534 if test ! -e $target_dir; then
2635 echo "$target not found"
2736 exit 0
@@ -32,6 +41,7 @@
3342
3443 export mediawiki=$target
3544 export mediawiki_location=$target_dir
36 - $ScriptLocation/load.sh $target &&
37 - echo "Running checks:" &&
38 - $ScriptLocation/compare_all.sh $p1 $p2
 45+$ScriptLocation/load.sh $target &&
 46+echo "Running checks:" &&
 47+$ScriptLocation/compare_all.sh $p1 $p2
 48+exit $?
Index: trunk/wikiation/wikiation_check_isolation/save.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33
44 # This software, copyright (C) 2008-2009 by Wikiation.
55 # This software is developed by Kim Bruning.
Index: trunk/wikiation/wikiation_check_isolation/load.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33
44 # This software, copyright (C) 2008-2009 by Wikiation.
55 # This software is developed by Kim Bruning.
Index: trunk/wikiation/wikiation_check_isolation/dump_desc.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33 # create a directory describing wiki database (for easy diff-ing)
44
55 # This software, copyright (C) 2008-2009 by Wikiation.
Index: trunk/wikiation/wikiation_check_isolation/create_and_ul.sh
@@ -1,4 +1,4 @@
2 -#!/bin/sh
 2+#!/bin/bash
33 #save data on a particular revision
44
55 # This software, copyright (C) 2008-2009 by Wikiation.
@@ -7,15 +7,23 @@
88 # Distributed under the terms of the MIT license.
99
1010
11 -
1211 if [[ $0 == '/'* ]]; then
1312 ScriptLocation="`dirname $0`"
1413 else
1514 ScriptLocation="`pwd`"/"`dirname $0`"
1615 fi
1716
18 -target=$1
19 -target_dir="/var/www/revisions/$target";
 17+
 18+
 19+if echo $1 | grep "/" ; then
 20+ target=`basename $1`
 21+ target_dir=`dirname $1`
 22+else
 23+ target=$1
 24+ target_dir="/var/www/revisions/$target";
 25+fi
 26+
 27+
2028 if test ! -e $target_dir; then
2129 echo "$target not found"
2230 exit 0

Status & tagging log