Commits

Martin Geisler committed 1f2b92c

SConstruct: delete intermediate .po.grep and .po.filter files

Comments (0)

Files changed (1)

                                   "msggrep -N $TXT $SOURCE -o $TARGET",
                                   TXT=txt)
             po_filter = env.Command("$LANG/%s.po.filter" % txt[4:-4], po_grep,
-                                    "msgfilter -i $SOURCE -o $TARGET"
-                                    " sed -re 's/(POT-Creation|PO-Revision)-Date.*//'",
+                                    ["msgfilter -i $SOURCE -o $TARGET"
+                                     " sed -re 's/(POT-Creation|PO-Revision)-Date.*//'",
+                                     Delete("$SOURCE")],
                                     ENV={"LC_ALL": "en_US.UTF-8"})
             mo = env.Command("$LANG/%s.mo" % txt[4:-4], po_filter,
-                             "msgfmt $SOURCE -o $TARGET")
+                             ["msgfmt $SOURCE -o $TARGET",
+                              Delete("$SOURCE")])
             env.Depends(html, mo)
 
     for dot in Flatten(dot_files):