From 140c14467a7e6d4064a5cf22f8a1e54caeb0991f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 28 Aug 2016 22:11:57 -0700 Subject: [PATCH] latest snapshot --- Mediawiki_Setup_Guide | 32 +++++++++++--------------------- mw-setup-script | 32 +++++++++++--------------------- 2 files changed, 22 insertions(+), 42 deletions(-) diff --git a/Mediawiki_Setup_Guide b/Mediawiki_Setup_Guide index dc5b427..f2436bf 100644 --- a/Mediawiki_Setup_Guide +++ b/Mediawiki_Setup_Guide @@ -874,7 +874,8 @@ div#mw-content-text { """) EOF -python pwb.py ${mwfamily}_setup +# this can spam a warning, so uniq it +python pwb.py ${mwfamily}_setup |& uniq @@ -987,31 +988,20 @@ dd of=$s<<'EOF' #!/bin/bash source ~/mw_vars cd $mw -git fetch --all -git checkout origin/$mw_branch -cd $mw/skins/Vector -git fetch --all -q -x=ian-kelling/REL1_27-toolbox-in-dropdown -log=$(git log HEAD..$x) -if [[ $log ]]; then - pwd - echo "$log" -fi -git checkout -q $x -cd $mw/extensions -for x in *; do - [[ -d $x ]] || continue - cd $x +for dir in extensions/* skins/* $mw; do + [[ -d $dir ]] || continue + cd $dir + branch=$(git describe --all) + branch=${branch#remotes/} git fetch --all -q - x=$(git rev-parse origin/$mw_branch 2>/dev/null) || \ - x=$(git rev-parse origin/master) - log=$(git log HEAD..$x) + new_head=$(git rev-parse $branch) + log=$(git log HEAD..$new_head) if [[ $log ]]; then pwd echo "$log" fi - git checkout -q $x - cd .. + git checkout -q $new_head + cd $mw done php $mw/maintenance/update.php -q EOF diff --git a/mw-setup-script b/mw-setup-script index 5cdfd14..dc73ee7 100755 --- a/mw-setup-script +++ b/mw-setup-script @@ -532,7 +532,8 @@ div#mw-content-text { """) EOF -python pwb.py ${mwfamily}_setup +# this can spam a warning, so uniq it +python pwb.py ${mwfamily}_setup |& uniq # # s=/etc/cron.daily/mediawiki_update @@ -540,31 +541,20 @@ dd of=$s<<'EOF' #!/bin/bash source ~/mw_vars cd $mw -git fetch --all -git checkout origin/$mw_branch -cd $mw/skins/Vector -git fetch --all -q -x=ian-kelling/REL1_27-toolbox-in-dropdown -log=$(git log HEAD..$x) -if [[ $log ]]; then - pwd - echo "$log" -fi -git checkout -q $x -cd $mw/extensions -for x in *; do - [[ -d $x ]] || continue - cd $x +for dir in extensions/* skins/* $mw; do + [[ -d $dir ]] || continue + cd $dir + branch=$(git describe --all) + branch=${branch#remotes/} git fetch --all -q - x=$(git rev-parse origin/$mw_branch 2>/dev/null) || \ - x=$(git rev-parse origin/master) - log=$(git log HEAD..$x) + new_head=$(git rev-parse $branch) + log=$(git log HEAD..$new_head) if [[ $log ]]; then pwd echo "$log" fi - git checkout -q $x - cd .. + git checkout -q $new_head + cd $mw done php $mw/maintenance/update.php -q EOF -- 2.30.2