forked from redbrick/eduScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompileweechat
More file actions
24 lines (24 loc) · 840 Bytes
/
Copy pathcompileweechat
File metadata and controls
24 lines (24 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
if [ "$HOSTNAME" = azazel ]; then
cd ~
git clone https://github.com/weechat/weechat
cd weechat
mkdir build
cd build
cmake .. -DENABLE_NLS=OFF -DCMAKE_INSTALL_PREFIX=$HOME
make
make install
echo '*/upgrade ~/bin/weechat' > `find ~/.weechat -name "weechat_fifo_*"`
export PATH=$HOME/bin:$PATH
rm -rf ~/weechat
mkdir ~/.weechat
cp ~edu/wcconf/* ~/.weechat/
user=`whoami`
sed -i "s/PUT YOUR USERNAME HERE/$user/g" ~/.weechat/irc.conf
sed -i "s/NICKSERV_PASSWORD/$1/g" ~/.weechat/irc.conf
#echo "alias weechat='~/bin/weechat'" >> ~/.zshrc
#echo "alias chat='~/bin/weechat'" >> ~/.zshrc
source ~/.zshrc
else
printf '%s\n' "uh-oh, not on azazel, ssh azazel and try again"
fi