mkbundle: add console confirmations of actions (#5457)
authorHinTak <htl10@users.sourceforge.net>
Fri, 1 Sep 2017 08:29:25 +0000 (09:29 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 1 Sep 2017 08:29:25 +0000 (10:29 +0200)
Almost all the other "maker.Add()" are accompanied by console messages, except these two. User might worry about why they are missing. (I did!)

mcs/tools/mkbundle/mkbundle.cs

index 8bf46a9ebe5139f6447ba5262a4ca1a459b07ad0..8680e0bbf8160f8f502a3705956eb7ebc06b88cb 100755 (executable)
@@ -624,6 +624,8 @@ class MakeBundle {
                        return false;
                }
                maker.Add (code, file);
+               // add a space after code (="systemconfig:" or "machineconfig:")
+               Console.WriteLine (code + " " + file);
                return true;
        }
        
@@ -666,8 +668,10 @@ class MakeBundle {
                if (!MaybeAddFile (maker, "systemconfig:", config_file) || !MaybeAddFile (maker, "machineconfig:", machine_config_file))
                        return false;
 
-               if (config_dir != null)
+               if (config_dir != null){
                        maker.Add ("config_dir:", config_dir);
+                       Console.WriteLine ("   Config_dir: " + config_dir );
+               }
                if (embedded_options != null)
                        maker.AddString ("options:", embedded_options);
                if (environment.Count > 0){