]> OCCT Git - occt-wok.git/commitdiff
OCC20850 umake command do not work on SunOS10
authorcascade <cascade@opencascade.com>
Fri, 13 Feb 2009 18:33:58 +0000 (18:33 +0000)
committercascade <cascade@opencascade.com>
Fri, 13 Feb 2009 18:33:58 +0000 (18:33 +0000)
src/WOKTclUtils/WOKTclUtils_Path.cxx

index e7f21edf0d992d7ec90164a3e3bb1dbdd11b4227..d5993bd83fcdce3104264dfb365c2a8d50c7786b 100755 (executable)
@@ -60,22 +60,22 @@ Standard_Integer WOKTclUtils_Path::FileCompare(const Standard_Integer argc,const
 
   if(!p1->Exists())
     {
-      ErrorMsg << argv[0] << "File : " << p1->Name() << " does not exists" << endm;
+      ErrorMsg() << argv[0] << "File : " << p1->Name() << " does not exists" << endm;
       return 1;
     }
   if(!p1->IsFile())
     {
-      ErrorMsg << argv[0] << "File : " << p1->Name() << " is not a plain file" << endm;
+      ErrorMsg() << argv[0] << "File : " << p1->Name() << " is not a plain file" << endm;
       return 1;
     }
   if(!p2->Exists())
     {
-      ErrorMsg << argv[0] << "File : " << p2->Name() << " does not exists" << endm;
+      ErrorMsg() << argv[0] << "File : " << p2->Name() << " does not exists" << endm;
       return 1;
     }
   if(!p2->IsFile())
     {
-      ErrorMsg << argv[0] << "File : " << p2->Name() << " is not a plain file" << endm;
+      ErrorMsg() << argv[0] << "File : " << p2->Name() << " is not a plain file" << endm;
       return 1;
     }
 
@@ -142,7 +142,7 @@ Standard_Integer WOKTclUtils_Path::DirectorySearch(const Standard_Integer argc,c
       break;
     default:
       {
-       ErrorMsg << argv[0] << argv[0] << " must have one and only one argument" << endm;
+       ErrorMsg() << argv[0] << argv[0] << " must have one and only one argument" << endm;
        WOKTclUtils_Path_DirectorySearch_Usage(argv[0]);
       }
       return 1;
@@ -152,7 +152,7 @@ Standard_Integer WOKTclUtils_Path::DirectorySearch(const Standard_Integer argc,c
 
   if(!ext.IsNull() && !name.IsNull())
     {
-      ErrorMsg <<  argv[0] 
+      ErrorMsg() <<  argv[0] 
        << "Option -E cannot be used in conjuction with -F" << endm;
       WOKTclUtils_Path_DirectorySearch_Usage(argv[0]);
       return 1;
@@ -172,7 +172,7 @@ Standard_Integer WOKTclUtils_Path::DirectorySearch(const Standard_Integer argc,c
 
   if(!p->IsDirectory())
     {
-      ErrorMsg << argv[0] << "Argument : " << p->Name() << " is not a directory" << endm;
+      ErrorMsg() << argv[0] << "Argument : " << p->Name() << " is not a directory" << endm;
       return 1;
     }