2016-09-26 15:44:00 -05:00
|
|
|
raven.mono: /usr/bin/mcs /usr/bin/mono clean ./raven.csharp ./connection.csharp ./ravencommand.csharp /bin/bash /usr/bin/mail /usr/bin/wget /usr/local/bin/djinni ./chatbot-support.bash
|
2016-08-04 11:08:14 -05:00
|
|
|
mcs -out:raven.mono reportmessage.csharp *exception.csharp irc*message.csharp connection.csharp raven*.csharp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
if [ "$$(ls ./*~ 2>/dev/null | wc -l)" -gt 0 ]; then rm -Rf *~; fi
|
|
|
|
if [ "$$(ls ./*.mono 2>/dev/null | wc -l)" -gt 0 ]; then rm -Rf *.mono; fi
|
|
|
|
if [ "$$(ls ./\#* 2>/dev/null | wc -l)" -gt 0 ]; then rm -Rf \#*; fi
|
|
|
|
if [ -f raven.mono ]; then rm raven.mono; fi
|
|
|
|
|
|
|
|
edit:
|
|
|
|
emacs -nw raven.csharp
|
|
|
|
|
|
|
|
test: raven.mono
|
2016-08-05 08:47:25 -05:00
|
|
|
script -c "mono ./raven.mono -c /usr/local/etc/TheRaven-Test -v" /tmp/raven-test.log
|
2016-08-04 11:08:14 -05:00
|
|
|
|
|
|
|
check-for-verbosity:
|
|
|
|
grep Console.WriteLine *.csharp | egrep -v 'verbosity|raven.csharp'; echo
|
|
|
|
|
|
|
|
install: raven.mono
|
2016-09-26 15:44:00 -05:00
|
|
|
id raven || useradd -M -G git,ircd,api raven
|
|
|
|
id raven || usermod -d /usr/local/etc/TheRaven raven
|
|
|
|
chown raven:raven /usr/local/etc/TheRaven
|
|
|
|
mkdir -p /usr/local/etc/TheRaven
|
2016-08-04 11:08:14 -05:00
|
|
|
cp raven.mono /opt/raven.mono
|
|
|
|
[ ! -d /usr/local/etc/TheRaven ] || mkdir -p /usr/local/etc/TheRaven
|
|
|
|
chown -R raven:raven /opt/raven.mono /usr/local/etc/TheRaven*
|
|
|
|
chmod 0600 /opt/raven.mono /usr/local/etc/TheRaven*/*
|
|
|
|
chmod 0700 /usr/local/etc/TheRaven*
|
|
|
|
cp ./raven.service /usr/lib/systemd/system/raven.service
|
|
|
|
/usr/bin/bash make-conf-dir.bash /usr/local/etc/TheRaven
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable raven
|