Files
azerothcore-wotlk/modules/azerothshard/bin/gitlogger/logger.sh
T
Yehonal 645931f55d importing AzerothShard MODULE
mostly commented out.
must be fixed and other mods to main /src, must be imported
2016-07-09 06:37:24 +02:00

24 lines
635 B
Bash

#!/bin/bash
git config --global credential.helper store
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
cd /home/hw2/usr/workspace/projects/AzerothShard/server-live
git pull
cd $DIR
rm old.log
mv new.log old.log
cd /home/hw2/usr/workspace/projects/AzerothShard/server-live
git log origin/development --no-merges --pretty=format:'<%an> %s' > $DIR/new.log
cd $DIR
awk '!/DEV-OP/' new.log > temp && mv temp new.log
comm -13 <(sort -u old.log) <(sort -u new.log) > shout.log
while read p; do
echo "announcing $p\n"
sudo screen -X -S worldserver-live -p 0 stuff "announce 'DEV: $p' ^M"
sleep 1
done <shout.log