[svn-commits] seanbright: trunk r726 - in /trunk: ./ menuselect.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 24 15:23:06 CDT 2010


Author: seanbright
Date: Wed Mar 24 15:23:02 2010
New Revision: 726

URL: http://svnview.digium.com/svn/menuselect?view=rev&rev=726
Log:
Set reviewboard:url property

Modified:
    trunk/   (props changed)
    trunk/menuselect.c

Propchange: trunk/
------------------------------------------------------------------------------
    reviewboard:url = https://reviewboard.asterisk.org

Modified: trunk/menuselect.c
URL: http://svnview.digium.com/svn/menuselect/trunk/menuselect.c?view=diff&rev=726&r1=725&r2=726
==============================================================================
--- trunk/menuselect.c (original)
+++ trunk/menuselect.c Wed Mar 24 15:23:02 2010
@@ -1540,8 +1540,11 @@
 		{ "check-deps",       no_argument,       &check_deps, 1 },
 		{ "enable",           required_argument, 0,           'e' },
 		{ "enable-category",  required_argument, 0,           'E' },
+		{ "enable-all",       no_argument,       0,           'A' },
 		{ "disable",          required_argument, 0,           'd' },
 		{ "disable-category", required_argument, 0,           'D' },
+		{ "disable-all",      no_argument,       0,           'a' },
+
 		{ 0, 0, 0, 0 },
 	};
 	int do_menu = 1;
@@ -1550,6 +1553,7 @@
 	const char *enable_cat = NULL;
 	const char *disable = NULL;
 	const char *disable_cat = NULL;
+	int enable_all = 0, disable_all = 0;
 
 	if (open_debug()) {
 		exit(1);
@@ -1583,6 +1587,14 @@
 			disable_cat = optarg;
 			do_menu = 0;
 			break;
+		case 'A':
+			enable_all = 1;
+			do_menu = 0;
+			break;
+		case 'a':
+			disable_all = 1;
+			do_menu = 0;
+			break;
 		default:
 			break;
 		}
@@ -1657,6 +1669,14 @@
 		}
 	}
 
+	if (enable_all ^ disable_all) {
+		struct category *cat;
+
+		AST_LIST_TRAVERSE(&categories, cat, list) {
+			set_all(cat, enable_all);
+		}
+	}
+
 	if (!res)
 		res = generate_makeopts_file();
 




More information about the svn-commits mailing list