This commit is contained in:
everyx 2017-03-14 21:39:46 +08:00
parent a83f0510ec
commit 4b4f67f051
9 changed files with 23 additions and 12 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.zip
*.gz

View File

@ -8,11 +8,7 @@ is online or `false` when operator is offline.
# Install # Install
1. Get the archive with the plugin sources from link bellow: 1. Get the archive with the plugin sources from [release page](https://github.com/everyx/mibew-operator-status-plugin/releases):
* [mibew-operator-status-plugin.tar.gz](archive/mibew-operator-status-plugin.tar.gz)
* [mibew-operator-status-plugin.zip](archive/mibew-operator-status-plugin.zip)
2. Untar/unzip the plugin's archive. 2. Untar/unzip the plugin's archive.

View File

@ -1,9 +1,22 @@
#!/bin/bash #!/bin/bash
plugin_root_dir='Everyx' author='Everyx'
plugin_target_dir="$plugin_root_dir/Mibew/Plugin/OperatorStatus"
mkdir -p $plugin_target_dir tmp_dir='/tmp'
cp -R src/* $plugin_target_dir working_dir=`echo $PWD`
tar -czvf archive/mibew-operator-status-plugin.tar.gz $plugin_root_dir
zip -r archive/mibew-operator-status-plugin.zip $plugin_root_dir target_dir="$tmp_dir/$author/Mibew/Plugin/OperatorStatus"
mkdir -p $target_dir
shopt -s extglob
cp -R !(*.sh) $target_dir
shopt -u extglob
version=`cat Plugin.php|grep -Po "(?<=return ')(\d.){2}\d{1}"`
cd $tmp_dir
tar -czvf $working_dir/mibew-operator-status-plugin.$version.tar.gz $author
zip -r $working_dir/mibew-operator-status-plugin.$version.zip $author
rm -rf $plugin_root_dir rm -rf $plugin_root_dir

View File

@ -1,4 +1,4 @@
mibew_boilerplate_hello: everyx_operator_status:
path: /opstatus/{opcode} path: /opstatus/{opcode}
defaults: defaults:
_controller: Everyx\Mibew\Plugin\OperatorStatus\Controller\OperatorStatusController::indexAction _controller: Everyx\Mibew\Plugin\OperatorStatus\Controller\OperatorStatusController::indexAction