Deal with *.tmp.msg after mkcatdefs failure
authorMarcin Cieslak <saper@saper.info>
Wed, 15 Aug 2012 01:30:48 +0000 (03:30 +0200)
committerJon Trulson <jon@radscan.com>
Wed, 15 Aug 2012 02:37:03 +0000 (20:37 -0600)
BSD make interrupts shell pipeline after
if it cannot run the command:

rm -f Mrm.msg
ln -s ../../../../imports/motif/localized/de_DE.ISO8859-1/msg/Mrm.msg Mrm.msg
Running mkcatdefs for Mrm.cat with LANG set to de_DE.ISO8859-1
(  rm -f Mrm.cat Mrm.tmp.msg;  LANG=de_DE.ISO8859-1;  export LANG;  ../../../../imports/motif/localized/util/mkcatdefs Mrm Mrm.msg -h > Mrm.tmp.msg;  gencat  Mrm.cat Mrm.tmp.msg;  rm -f Mrm.tmp.msg  )
../../../../imports/motif/localized/util/mkcatdefs: not found
*** Error code 127

After this, an empty Mrm.tmp.msg is left.

cde/.gitignore
cde/programs/localized/templates/msg.tmpl

index 9aa2dd7592bb143adce3f6f72499130e406c2ae9..46827178498a821bf32fd6885eef7377fdff4fa6 100644 (file)
@@ -131,6 +131,16 @@ programs/dtwm/dtwm
 programs/localized/C/types/*.dt
 programs/localized/C/types/*.dt.tmsg
 programs/localized/C/types/*.nls
+programs/localized/ls /msg/*.nls
+programs/localized/de_DE.ISO8859-1/msg/*.tmp.msg
+programs/localized/es_ES.ISO8859-1/msg/*.tmp.msg
+programs/localized/fr_FR.ISO8859-1/msg/*.tmp.msg
+programs/localized/it_IT.ISO8859-1/msg/*.tmp.msg
+programs/localized/ja_JP.dt-eucJP/msg/*.tmp.msg
+programs/localized/ko_KR.dt-eucKR/msg/*.tmp.msg
+programs/localized/sv_SE.ISO8859-1/msg/*.tmp.msg
+programs/localized/zh_CN.dt-eucCN/msg/*.tmp.msg
+programs/localized/zh_TW.dt-eucTW/msg/*.tmp.msg
 
 # dtappbuilder
 programs/dtappbuilder/src/ab/.dtcodegen.log
index 697f45754cb95326beeea2e17f16c40a3f4313ae..f9987c7101120fc425462dc82ba41913a642c317 100644 (file)
@@ -7,5 +7,6 @@ RandomMessageCatalogRule()
 
 clean::
        $(RM) *.cat
+       $(RM) *.tmp.msg
 
 depend::