Skip to content

Commit

Permalink
fix #1 fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
everyx committed Mar 14, 2017
1 parent a83f051 commit 4b4f67f
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.zip
*.gz
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ is online or `false` when operator is offline.

# Install

1. Get the archive with the plugin sources from link bellow:

* [mibew-operator-status-plugin.tar.gz](archive/mibew-operator-status-plugin.tar.gz)

* [mibew-operator-status-plugin.zip](archive/mibew-operator-status-plugin.zip)
1. Get the archive with the plugin sources from [release page](https://github.com/everyx/mibew-operator-status-plugin/releases):

2. Untar/unzip the plugin's archive.

Expand Down
Binary file removed archive/mibew-operator-status-plugin.tar.gz
Binary file not shown.
Binary file removed archive/mibew-operator-status-plugin.zip
Binary file not shown.
25 changes: 19 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
#!/bin/bash

plugin_root_dir='Everyx'
plugin_target_dir="$plugin_root_dir/Mibew/Plugin/OperatorStatus"
mkdir -p $plugin_target_dir
cp -R src/* $plugin_target_dir
tar -czvf archive/mibew-operator-status-plugin.tar.gz $plugin_root_dir
zip -r archive/mibew-operator-status-plugin.zip $plugin_root_dir
author='Everyx'

tmp_dir='/tmp'
working_dir=`echo $PWD`

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
File renamed without changes.
2 changes: 1 addition & 1 deletion src/routing.yml → routing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mibew_boilerplate_hello:
everyx_operator_status:
path: /opstatus/{opcode}
defaults:
_controller: Everyx\Mibew\Plugin\OperatorStatus\Controller\OperatorStatusController::indexAction

0 comments on commit 4b4f67f

Please # to comment.