浏览代码

* Do not show full path in backup-message
* Skip path-creation when output is set to stdout

git-svn-id: trunk@17186 -

joost 14 年之前
父节点
当前提交
739ea3720c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      utils/fpcmkcfg/fpcmkcfg.pp

+ 2 - 2
utils/fpcmkcfg/fpcmkcfg.pp

@@ -493,9 +493,9 @@ begin
       Halt(1);
       end
     else
-      Writeln(Format(SBackupCreated,[OutputFileName,BFN]));
+      Writeln(Format(SBackupCreated,[ExtractFileName(OutputFileName),ExtractFileName(BFN)]));
     end;
-  if not DirectoryExists(ExtractFilePath(OutputFileName)) then
+  if (OutputFileName<>'') and not DirectoryExists(ExtractFilePath(OutputFileName)) then
     begin
     if CreateDir then
       begin