From 4b4f67f051e43858a3f1be373bf81960a9f2fc6f Mon Sep 17 00:00:00 2001 From: everyx Date: Tue, 14 Mar 2017 21:39:46 +0800 Subject: [PATCH] fix #1 fix #2 --- .gitignore | 2 ++ .../OperatorStatusController.php | 0 src/Plugin.php => Plugin.php | 0 README.md | 6 +---- archive/mibew-operator-status-plugin.tar.gz | Bin 1950 -> 0 bytes archive/mibew-operator-status-plugin.zip | Bin 4209 -> 0 bytes build.sh | 25 +++++++++++++----- src/composer.json => composer.json | 0 src/routing.yml => routing.yml | 2 +- 9 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 .gitignore rename {src/Controller => Controller}/OperatorStatusController.php (100%) rename src/Plugin.php => Plugin.php (100%) delete mode 100644 archive/mibew-operator-status-plugin.tar.gz delete mode 100644 archive/mibew-operator-status-plugin.zip rename src/composer.json => composer.json (100%) rename src/routing.yml => routing.yml (84%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a7e8081 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.zip +*.gz \ No newline at end of file diff --git a/src/Controller/OperatorStatusController.php b/Controller/OperatorStatusController.php similarity index 100% rename from src/Controller/OperatorStatusController.php rename to Controller/OperatorStatusController.php diff --git a/src/Plugin.php b/Plugin.php similarity index 100% rename from src/Plugin.php rename to Plugin.php diff --git a/README.md b/README.md index 63cd6bb..51af121 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/archive/mibew-operator-status-plugin.tar.gz b/archive/mibew-operator-status-plugin.tar.gz deleted file mode 100644 index 7ff706d99e423134dce7146d0171ce0bab790a0b..0000000000000000000000000000000000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q`jF2GDG72j@k8We z?)D*eZzvaF`i?TovC_?r8F8>#C@I3 z^4Q}(P37w=uiZ3Dph@L5*4?FDMYFs2YHpe2c%AP@f((%KdU?1sw`TSs7(ofG#5=9D z!ej z+$uTw%dXt5U&)f08mshA`sOjhA*%HI>ePMV@wfXq2a7z)P9eg+Fb}%YgY0>~=G2wf zW9DK|VhAJ@0*2?YB&lS_r()2RRO1qe)ZJcv>Xb~n?#nh`!;S&L~@ny;YmSNP{`0`6QOk79O^7P;rt zd96>m2+zH;a96IT#g8gOU+K^5goX7xMP6Di?lbPY^=hM9-_?cIe;&`M{{&us7%SDg zN%(a#zV!QF^Wbo~{==G3*MHl9{H^bL$gye?aftQQ^%x5gj#U6Q|LOPyYCKjy>D4}| z-jTXGpN-sUm{PHTxb|jWVw|k^z0TmN?@3Nh=Dt$U*+WA^LqkJDLqkJDLqkJDLqkJD kLqkJDLqkJDLqkJDLqkJDLqkJDL*oH|13nQ>*Z@!f07v!BmH+?% diff --git a/archive/mibew-operator-status-plugin.zip b/archive/mibew-operator-status-plugin.zip deleted file mode 100644 index 3bd29c7b87e51a626ab76c04f8e0866338cae55a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4209 zcmbW42UJtp7KVeAfOKh*CMq^cM1cU(tCC0yM4Cu5QUpQ?#7L1Qp-8Y$BE?Z*7@Bkh z5rklXAYcTfM2bO0Kw4~rLI@8>-zdJPgLCh?ZLPb$|LlG4J$wI_FjltBfKQty+z0yC z&6g7pAPF!IK?Y*a>_^ye0a$y=NOqr&;4|C+7Pcu?0D$e}+N+j71n_reI|$|Xv)m$6v@J+VJaLQ6&7I0#78j1TH#hrl;(`Pkma6W8XWD$E8UDds zOp@}`Q%Gkly?;J9$p>h(=Uf0xUwKAZEFTgIFD!?vXc(nccI+zbPoth~7(buT3!2OH zr8i&}#$Uy~T-z6mBtgL1l~PpaL;Q;?l3H5#Al<19LARnOj=n4p;j6|%Ra4cVnKQIR zN~651ZdGrJtNv@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zRnPSgYLDN8-+Er<03GHvau0V6~ zd|)C|#F${c!JUKASWe`EiSFUdu%_p|pS4H{Q_BjjM3iO>=_>eS3?`2i_s!hiimwmt zF7M7$gS3xJjNrEV6$dzt=SS*%(4*1}Ks_x@N^Q|gvj|&_I-?5}Dlex$3;VyOyZSxxDjwcR42` zY|cpC-1p&Jhx(JVtIyCjOfPiPb(5#D5#hS$beo!(N>8}`8{+@6W#VR9FQzuw z(w`Z@3>BwObC}1%$@2Ar2}5W=>x}31NqGP1;+3vl{v_n@@wQKo%%ro_HQS%}assJq zS)RC}?dKet9|EIZ+ni{d-sy32@hQV1!sX}#!9ScHk?w@DTEbX1NwfaQn1I$o{j>=H z=JY>Z|F$XYpKZ$jSd<^bcmdzSKGD9w{%cu&9VxsH8UH=%v2C+K}qkR(!*eu6F|8 zMmqA#n(K4$bugcc=+AQSHS_B$^|#~c0&XY=-`4GoNv>ZszLl)z-jL+FCFDn%>}#zD R0Km1jlhzuM44zL<{{diUe24%5 diff --git a/build.sh b/build.sh index 189a850..4a24ef8 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/src/composer.json b/composer.json similarity index 100% rename from src/composer.json rename to composer.json diff --git a/src/routing.yml b/routing.yml similarity index 84% rename from src/routing.yml rename to routing.yml index 11cea93..144cd09 100644 --- a/src/routing.yml +++ b/routing.yml @@ -1,4 +1,4 @@ -mibew_boilerplate_hello: +everyx_operator_status: path: /opstatus/{opcode} defaults: _controller: Everyx\Mibew\Plugin\OperatorStatus\Controller\OperatorStatusController::indexAction