[patch] dont' break install if a .mo failed to build (and be silent)

Benjamin Pineau benjamin_pineau at zouh.org
Thu May 24 11:18:10 PDT 2007


Small modif for the po/Makefile (apply with -p0) :
 - don't build verbosely
 - don't break the whole install if a .mo failed to compile

-------------- next part --------------
Index: po/Makefile
===================================================================
--- po/Makefile	(r??vision 83)
+++ po/Makefile	(copie de travail)
@@ -5,7 +5,7 @@
 translations: $(OBJ)
 	
 %.mo: %.po
-	- at msgfmt -o $@ -v $<
+	- at msgfmt -o $@ $<
 
 clean:
 	rm -f *.mo
@@ -16,5 +16,5 @@
 
 %.inst: %.mo
 	mkdir -p $(DESTDIR)$(LOCALESDIR)/$*/LC_MESSAGES/
-	cp -f $< $(DESTDIR)$(LOCALESDIR)/$*/LC_MESSAGES/powertop.mo
+	-cp -f $< $(DESTDIR)$(LOCALESDIR)/$*/LC_MESSAGES/powertop.mo
 


More information about the Power mailing list