-
Notifications
You must be signed in to change notification settings - Fork 3
/
makeplugin
28 lines (26 loc) · 1.12 KB
/
makeplugin
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
#/bin/bash
BUILDOUT=`pwd`
rm -rf parts/rabbitmq/plugins-src/rabbitmq_auth_backend_max
cp -r src/rabbitmq_auth_backend_max parts/rabbitmq/plugins-src/rabbitmq_auth_backend_max
cd parts/rabbitmq/plugins-src/rabbitmq_auth_backend_max
make
cd $BUILDOUT
cp parts/rabbitmq/plugins-src/rabbitmq_auth_backend_max/dist/rabbitmq_auth_backend_max*.ez parts/rabbitmq/plugins/
echo
echo "*********************************************"
echo "RabbitMQ MAX authentication plugin installed!"
echo "*********************************************"
echo
rm -rf parts/rabbitmq/plugins-src/rabbitmq-stomp/src
rm -rf parts/rabbitmq/plugins-src/rabbitmq-stomp/include
cp -r src/rabbitmq-stomp/src parts/rabbitmq/plugins-src/rabbitmq-stomp
cp -r src/rabbitmq-stomp/include parts/rabbitmq/plugins-src/rabbitmq-stomp
cd parts/rabbitmq/plugins-src/rabbitmq-stomp
make
cd $BUILDOUT
rm -rf parts/rabbitmq/plugins/rabbitmq_stomp*.ez
cp parts/rabbitmq/plugins-src/rabbitmq-stomp/dist/rabbitmq_stomp*.ez parts/rabbitmq/plugins/
echo
echo "***************************************"
echo "RabbitMQ custom STOMP plugin installed!"
echo "***************************************"