This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix grof/po/Make-in
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Sat, 19 Jul 2003 00:32:42 -0700
- Subject: PATCH: Fix grof/po/Make-in
We are checking if the .gmo file is writable when it may not even
exist. I copied the one from binutils.
H.J.
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gprof/ChangeLog,v
retrieving revision 1.101
diff -u -p -r1.101 ChangeLog
--- ChangeLog 17 Jul 2003 14:22:41 -0000 1.101
+++ ChangeLog 19 Jul 2003 07:30:42 -0000
@@ -1,3 +1,8 @@
+2003-07-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ * po/Make-in (.po.gmo): Do check if the .gmo file is writable
+ before generating it.
+
2003-07-17 Nick Clifton <nickc@redhat.com>
* po/es.po: New Spanish translation.
Index: po/Make-in
===================================================================
RCS file: /cvs/src/src/gprof/po/Make-in,v
retrieving revision 1.3
diff -u -p -r1.3 Make-in
--- po/Make-in 11 Jun 2003 01:32:08 -0000 1.3
+++ po/Make-in 19 Jul 2003 07:30:42 -0000
@@ -72,9 +72,7 @@ INSTOBJEXT = @INSTOBJEXT@
.po.gmo:
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
- && test -w $$file \
- && (rm -f $$file && $(GMSGFMT) -o $$file $< ) \
- || echo "$$file is not writable"
+ && rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \