Skip to content

Commit 52bdcc0

Browse files
committed
Build script; README; Release 1.0
1 parent bf741ac commit 52bdcc0

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed

README.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SimpleBatchUpload
2+
3+
[![Latest Stable Version](https://poser.pugx.org/s7eph4n/simple-batch-upload/version.png)](https://packagist.org/packages/s7eph4n/simple-batch-upload)
4+
[![Packagist download count](https://poser.pugx.org/s7eph4n/simple-batch-upload/d/total.png)](https://packagist.org/packages/s7eph4n/simple-batch-upload)
5+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/s7eph4n/SimpleBatchUpload/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/s7eph4n/SimpleBatchUpload/?branch=master)
6+
[![Dependency Status](https://www.versioneye.com/php/s7eph4n:simple-batch-upload/badge.png)](https://www.versioneye.com/php/s7eph4n:simple-batch-upload)
7+
8+
The [SimpleBatchUpload][mw-simple-batch-upload] extension provides basic,
9+
no-frills uploading of multiple files to MediaWiki.
10+
11+
## Requirements
12+
13+
- PHP 5.4 or later
14+
- MediaWiki 1.26 or later
15+
16+
## Installation
17+
18+
The recommended way to install this extension is by using [Composer][composer].
19+
Just add the following to the MediaWiki `composer.local.json` file and run
20+
`php composer.phar update mediawiki/simple-batch-upload` from the MediaWiki
21+
installation directory.
22+
23+
```json
24+
{
25+
"require": {
26+
"mediawiki/simple-batch-upload": "~1.0"
27+
}
28+
}
29+
```
30+
31+
(Alternatively you can download a tar ball or zip file from
32+
[GitHub](https://github.com/s7eph4n/SimpleBatchUpload/releases/latest)
33+
and extract it into the `extensions` directory of your MediaWiki installation.)
34+
35+
Then add the following line to your `LocalSettings.php`:
36+
```php
37+
wfLoadExtension('SimpleBatchUpload');
38+
```
39+
40+
## License
41+
42+
[GNU General Public License 2.0][license] or later.
43+
44+
[license]: https://www.gnu.org/copyleft/gpl.html
45+
[mw-simple-batch-upload]: https://www.mediawiki.org/wiki/Extension:Semantic_Glossary
46+
[composer]: https://getcomposer.org/

build/release/build_tarballs.sh

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#! /bin/bash
2+
3+
# Utility adapted from the tool for creating SMW tarballs
4+
# By Jeroen De Dauw < [email protected] >
5+
#
6+
# @copyright (C) 2016, Stephan Gambke
7+
# @license GNU General Public License, version 2 (or any later version)
8+
#
9+
# This software is free software; you can redistribute it and/or
10+
# modify it under the terms of the GNU General Public License
11+
# as published by the Free Software Foundation; either version 2
12+
# of the License, or (at your option) any later version.
13+
# This software is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
# GNU General Public License for more details.
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program; if not, see <http://www.gnu.org/licenses/>.
19+
20+
# Parameters:
21+
# $1: version fed to composer, defaults to dev-master
22+
# $2: version used in the tarball name, defaults to $1
23+
24+
COMPOSER_VERSION="$1"
25+
VERSION="$2"
26+
if [ "$COMPOSER_VERSION" == "" ]; then
27+
COMPOSER_VERSION="dev-master"
28+
fi
29+
30+
if [ "$VERSION" == "" ]; then
31+
VERSION=$COMPOSER_VERSION
32+
fi
33+
34+
NAME="SimpleBatchUpload $VERSION (+dependencies)"
35+
DIR="SimpleBatchUpload"
36+
37+
BUILD_DIR="build-$VERSION"
38+
39+
rm -rf $BUILD_DIR
40+
mkdir $BUILD_DIR
41+
cd $BUILD_DIR
42+
43+
composer create-project mediawiki/simple-batch-upload $DIR $COMPOSER_VERSION --stability dev --prefer-dist --no-dev --ignore-platform-reqs --no-install
44+
45+
cd $DIR
46+
composer install --prefer-dist --no-dev --ignore-platform-reqs --optimize-autoloader
47+
cd -
48+
49+
zip -qro9 "$NAME.zip" $DIR
50+
tar -czf "$NAME.tar.gz" $DIR
51+
52+
cd ..
53+
set -x
54+
ls -lap $BUILD_DIR

extension.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SimpleBatchUpload",
3-
"version": "0.0.0-alpha",
3+
"version": "1.0",
44
"author": [
55
"[http://www.mediawiki.org/wiki/User:F.trott Stephan Gambke]"
66
],

0 commit comments

Comments
 (0)