summaryrefslogtreecommitdiffstats
path: root/chat-irc/weechat/PREPARE
diff options
context:
space:
mode:
Diffstat (limited to 'chat-irc/weechat/PREPARE')
-rwxr-xr-xchat-irc/weechat/PREPARE24
1 files changed, 13 insertions, 11 deletions
diff --git a/chat-irc/weechat/PREPARE b/chat-irc/weechat/PREPARE
index 26b1e5b29e..05b612fe7a 100755
--- a/chat-irc/weechat/PREPARE
+++ b/chat-irc/weechat/PREPARE
@@ -1,11 +1,13 @@
-config_query WEECHAT_DEVEL "Build development version?" n
-if [ "$WEECHAT_DEVEL" == "y" ]; then
- config_query WEECHAT_DEVEL_CVS "Use git version instead of devel package?" n
- config_query WEECHAT_DEVEL_AUTOUPDATE \
- "Update to the latest devel automatically on every cast?" n
- config_query DEV_DEBUG "Enable debug messages?" n
- if [ "$DEV_DEBUG" == "y" ]; then config_query DEV_DEBUG_FULL "Print debug messages to the window?" n; fi
- if [ "$WEECHAT_DEVEL_CVS" == "y" ]; then
- config_query DEV_CMAKE "Use cmake instead of autotools? (may fail, still in testing)" n
- fi
-fi
+. ${GRIMOIRE}/FUNCTIONS &&
+prepare_select_branch stable devel scm &&
+case "$WEECHAT_BRANCH" in
+ scm|devel)
+ config_query WEECHAT_DEBUG "Enable debug messages?" n &&
+ if [ "$WEECHAT_DEBUG" == "y" ]; then
+ config_query WEECHAT_DEBUG_FULL "Print debug messages to the window?" n
+ fi &&
+ config_query WEECHAT_CMAKE "Use cmake instead of autotools? (may fail, still in testing)" n
+ ;;
+esac &&
+
+config_query WEECHAT_SYMLINKS "Make compatibility symlinks?" y