diff options
author | Sadie Powell <sadie@witchery.services> | 2025-03-03 23:29:53 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-03-03 23:29:53 +0000 |
commit | c0c7046a6df35d416f6cccf4fc0ea55018a12d93 (patch) | |
tree | 23d3eeb21c7fecf9a65302edaab3818f65c8bdc1 /Config | |
parent | 937ea7dab49a0c58738a7395ee5aec690f8fed2f (diff) |
Check if users really want to use 2.1 in Config.
Diffstat (limited to 'Config')
-rwxr-xr-x | Config | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -113,6 +113,7 @@ while [ $# -ge 1 ] ; do exit 0 elif [ $1 = "-devel" ] ; then DEBUG="yes" + DEVEL="yes" INSTDIR="$SOURCE_DIR/run" elif [ $1 = "-nocache" ] ; then IGNORE_CACHE="1" @@ -171,6 +172,33 @@ export ok INPUT #### +TEMP_YN="n" +if [ "$DEVEL" = "yes" ] ; then + TEMP_YN="y" +fi +echo "You are building the 2.1 development branch. This branch is not as well tested" +echo "as the 2.0 stable branch and may have compatibility breaks without notice. Are" +echo "you sure you want to use this version?" +echo -n "[$TEMP_YN] " +read YN +if [ "$YN" ] ; then + if [ "$YN" = "y" ] ; then + DEVEL="yes" + else + DEVEL="no" + fi +fi +echo "" + +if [ "$DEVEL" != "yes" ] ; then + echo "If you are building from Git you can run \`git checkout 2.0\` to get the latest" + echo "stable code. Otherwise, you can download the latest 2.0 release tarball from" + echo "https://github.com/anope/anope/releases/latest" + exit 1 +fi + +#### + ok=0 echo "In what directory should Anope be installed?" while [ $ok -eq 0 ] ; do @@ -337,6 +365,7 @@ INSTDIR="$INSTDIR" RUNGROUP="$RUNGROUP" UMASK=$UMASK DEBUG="$DEBUG" +DEVEL="$DEVEL" EXTRA_INCLUDE_DIRS="$EXTRA_INCLUDE_DIRS" EXTRA_LIB_DIRS="$EXTRA_LIB_DIRS" EXTRA_CONFIG_ARGS="$EXTRA_CONFIG_ARGS" |