-
Notifications
You must be signed in to change notification settings - Fork 3
/
clone-mw-extensions.sh
executable file
·53 lines (49 loc) · 2.43 KB
/
clone-mw-extensions.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
#########################################################################
#Name: clone-mw-extensions.sh
#Subscription: Clones all my MediaWiki extensions
#
##by A. Laub
#andreas[-at-]laub-home.de
#
#License:
#This program is free software: you can redistribute it and/or modify it
#under the terms of the GNU General Public License as published by the
#Free Software Foundation, either version 3 of the License, or (at your option)
#any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
#or FITNESS FOR A PARTICULAR PURPOSE.
#########################################################################
#Set the language
export LANG="en_US.UTF-8"
#Load the Pathes
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# set the variables
#MW_BRANCH=$(docker exec laubhome_135_mediawiki_1 env | grep MEDIAWIKI_MAJOR_VERSION |cut -d"=" -f2)
MW_BRANCH=REL1_35
rm -f extensions
mkdir extensions_$MW_BRANCH
cp -rp extensions_archive/* extensions_$MW_BRANCH/
cd extensions_$MW_BRANCH
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning"
#git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleAdSense"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/googleAnalytics"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/Lockdown"
#git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/SelectCategory"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/SelectCategory"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiCategoryTagCloud"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/Description2"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles"
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend"
git clone "https://github.com/JeroenDeDauw/GitHub"
#git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/extensions/ContributionCredits"
cd ..
ln -s extensions_$MW_BRANCH extensions
rm -f skins
mkdir skins_$MW_BRANCH
cd skins_$MW_BRANCH
git clone -b $MW_BRANCH "https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue"
cd ..
ln -s skins_$MW_BRANCH skins