On Thu, Mar 21, 2013, at 08:32 PM, Bruce Dubbs wrote:
> Pierre Labastie wrote:
>
> >> For the ALFS web page, I do not know exactly how to proceed. I do not
> >> know much of html, actually, but I may try to use the existing formatting.
>
How about something like this Bruce.
See attached diff.
Thomas
Index: menu/mconf.c
===================================================================
--- menu/mconf.c (revision 3678)
+++ menu/mconf.c (working copy)
@@ -959,6 +959,8 @@
/* Restart dialog to act more like when lxdialog was still separate */
init_dialog();
+ stat = -1;
+
do {
stat = dialog_yesno(NULL,
"Do you wish to save your new JHALFS configuration?", 5, 60);
@@ -969,8 +971,22 @@
conf_write(NULL);
printf("\n"
"*** End of JHALFS configuration.\n");
- } else
- printf("\n\nYour JHALFS configuration changes were NOT saved.\n\n");
+ return 0;
+ }
+ else
+ {
+ init_dialog();
+ do {
+ stat = dialog_msgbox(NULL,
+ "Changes were NOT saved. Ok to exit jhalfs?", 5, 60, 1);
+ } while (stat < 0);
+ end_dialog();
- return 0;
+ if (stat != 1)
+ {
+ // printf("\n""Changes not saved, exiting gracefully.");
+ exit (1);
+ }
+ //printf("\n\nYour JHALFS configuration changes were NOT saved.\n\n");
+ }
}
Index: Makefile
===================================================================
--- Makefile (revision 3678)
+++ Makefile (working copy)
@@ -6,10 +6,13 @@
CONFIG_CONFIG_IN = Config.in
CONFIG = menu
-all: menuconfig
+all: $(CONFIG)/mconf
# @clear
- @`grep RUN_ME configuration | sed -e 's@RUN_ME=\"@@' -e 's@\"@@' `
+ @$(CONFIG)/mconf $(CONFIG_CONFIG_IN) && \
+ `grep RUN_ME configuration | sed -e 's@RUN_ME=\"@@' -e 's@\"@@' ` \
+ || echo "Exiting gracefully."
+
$(CONFIG)/conf:
$(MAKE) -C $(CONFIG) conf
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page