[vserver] [PATCH] build: avoid GNU extension for chmod

From: Natanael Copa <natanael.copa_at_gmail.com>
Date: Thu 23 Feb 2012 - 12:39:21 GMT
Message-Id: <1330000761-22755-1-git-send-email-ncopa@alpinelinux.org>

Busybox chmod does not support --reference. This simple fix makes it
build with busybox chmod instead of util-linux.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>

---
 Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 0a16f96..b9587b0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -151,7 +151,7 @@ pathconfig.h:		.pathconfig.h.pathsubst.stamp
 			@mkdir -p $$(dirname '$@')
 			@echo "$(SED) -e '...' $*.pathsubst >$*"
 			@$(SED) -e '$(pathsubst_RULES)' '$<' >'$@.tmp'
-			@-chmod --reference='$<' '$@.tmp'
+			@-chmod $$(stat -c %a '$<') '$@.tmp'
 			@if cmp -s '$@.tmp' '$*'; then \
 				echo "... no changes, reusing old version"; \
 				rm -f '$@.tmp'; \
-- 
1.7.9.2
Received on Thu Feb 23 12:39:35 2012
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 23 Feb 2012 - 12:39:35 GMT by hypermail 2.1.8