summarylogtreecommitdiffstats
path: root/weechat-matrix-git.install
diff options
context:
space:
mode:
authorSlashbunny2020-03-30 10:24:07 -0400
committerSlashbunny2020-03-30 10:24:15 -0400
commit0e63d482c930a84400f2eeb9c48878782c6f2cf3 (patch)
tree60b2482d9a354e344dced472b9cc3846fbe8b596 /weechat-matrix-git.install
parent5e98d6b4ff829c18bea4729b3e4432c16ef80889 (diff)
downloadaur-0e63d482c930a84400f2eeb9c48878782c6f2cf3.tar.gz
Initial commit of new poljar plugin
Diffstat (limited to 'weechat-matrix-git.install')
-rw-r--r--weechat-matrix-git.install22
1 files changed, 17 insertions, 5 deletions
diff --git a/weechat-matrix-git.install b/weechat-matrix-git.install
index c9c56a18015a..f81f16a782d3 100644
--- a/weechat-matrix-git.install
+++ b/weechat-matrix-git.install
@@ -1,6 +1,18 @@
-post_install () {
- echo "[weechat-matrix-git] Please run the following to complete installation:"
- echo "[weechat-matrix-git] mkdir -p ~/.weechat/lua/autoload"
- echo "[weechat-matrix-git] ln -s /opt/matrix.lua ~/.weechat/lua"
- echo "[weechat-matrix-git] ln -s ~/.weechat/lua/matrix.lua ~/.weechat/lua/autoload"
+_install_update_msg() {
+ echo "In order to use this plugin after installation, you'll need to run the following command as the user running weechat:"
+ echo ""
+ echo " $ ln -s /usr/share/weechat/python/{matrix,matrix.py} -t ~/.weechat/python"
+ echo ""
+ echo "If you want the script to be loaded on start-up, you'll also need to symlink it into the autoload folder:"
+ echo ""
+ echo " $ ln -s /usr/share/weechat/python/matrix.py ~/.weechat/python/autoload/"
+ echo ""
+}
+
+post_install() {
+ _install_update_msg
+}
+
+post_upgrade() {
+ _install_update_msg
}