[beast] PO: avoid triggering 'update-po' for read-only srcdir, even if root
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] PO: avoid triggering 'update-po' for read-only srcdir, even if root
- Date: Fri, 1 Apr 2016 17:46:24 +0000 (UTC)
commit 4b51bf6a4cf1ca81e122e7185fbcdb86eafc3ed7
Author: Tim Janik <timj gnu org>
Date: Fri Apr 1 15:49:16 2016 +0200
PO: avoid triggering 'update-po' for read-only srcdir, even if root
Signed-off-by: Tim Janik <timj gnu org>
po/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/po/Makefile.am b/po/Makefile.am
index 40714b9..dfba702 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -170,7 +170,7 @@ update-po: Makefile
done
.PHONY: update-po
DISTDIR_HOOK = distdir # use indirection to emulate distdir-hook
-$(DISTDIR_HOOK): $(shell test -w $(srcdir)/messages.pot && echo 'update-po')
+$(DISTDIR_HOOK): $(shell test w == `stat -c '%A' $(srcdir)/messages.pot | cut -c3` && echo 'update-po') #
using 'test -w' fails for UID=0
CLEANFILES += $(POTLIST) $(TMPLIST) $(TMPDIR)/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]