X-Git-Url: https://iankelling.org/git/?p=mediawiki-setup;a=blobdiff_plain;f=mw-setup-script;h=1c356d4e587149fba6306c5994d677391b45a540;hp=599766800be8cc5fd03f44723c68fec04092a8ee;hb=ce5dbd53563bcdf13451a7226566447dcc9a519f;hpb=36be2f22108098545ff35f189db1637102febcdb diff --git a/mw-setup-script b/mw-setup-script index 5997668..1c356d4 100755 --- a/mw-setup-script +++ b/mw-setup-script @@ -19,7 +19,7 @@ mw-clone() { local url=$1 local original_pwd="$PWD" local name - local re='[^/]*/[^/]*$' + local re='[^/]*/[^/]*$' # last 2 parts of path [[ $url =~ $re ]] ||: target=$mw/${BASH_REMATCH[0]} if [[ ! -e $target/.git ]]; then @@ -37,11 +37,10 @@ mw-clone() { } mw-ext () { local ext - for ext in "$@"; do + for ext; do mw-clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/$ext - if [[ -e $mw/ext/$ext/extension.json ]]; then - # new style extension. remove old style declaration - sed -i --follow-symlinks '#^require_once( "\\\$IP/extensions/\$ext/\$ext\.php" );#d' $mwc + if [[ -e $mw/extensions/$ext/extension.json ]]; then + # new style extension teeu $mwc <