Exceptionally hacky linux fix. gnu gencat is returning != 0 even when it's
authorPeter Howkins <flibble@users.sourceforge.net>
Thu, 22 Mar 2012 17:05:45 +0000 (17:05 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Thu, 22 Mar 2012 17:05:45 +0000 (17:05 +0000)
succeeding.

cde/programs/localized/util/merge.c

index 8a31625a345fd09af9ae7f0e5416a069fb1e5f99..7e247d62b1cc501fbccc35a2ac44b4c36005a2c2 100644 (file)
@@ -247,7 +247,13 @@ void cat_open ()
         sprintf(line,"/usr/bin/gencat ./.dt_pfile.cat %s",pfile);
 #endif
         if ( system(line) != 0 )
+       {
+       /* Utter Linux HACK, it seems the return value of GNU gencat is != 0
+          even on success */
+#if !defined(linux)
            fatal("primary .tmsg file would not gencat\n",0,9);
+#endif
+       }
     }
 
     catfile[0] =  catopen("./.dt_pfile.cat",0);
@@ -260,7 +266,14 @@ void cat_open ()
         sprintf(line,"/usr/bin/gencat ./.dt_dfile.cat %s",dfile);
 #endif
         if ( system(line) != 0 )
+       {
+       /* Utter Linux HACK, it seems the return value of GNU gencat is != 0
+          even on success */
+#if !defined(linux)
            fatal("default .tmsg file would not gencat\n",0,9);
+#endif
+       }
+
     }
 
     catfile[1] = catopen("./.dt_dfile.cat",0);