summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-08 15:55:04 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-08 15:55:04 +0000
commitc530bc1da19b17c5a3d302054f2abb280a86dcb1 (patch)
tree4311f2e585d8e3033826f92597b54b19859c2e50 /Makefile
parent321d2f0e5667fd3d10e9cd41aa80818bad71ebdc (diff)
Dont choke when chown fails. Try to be more portable...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 79ff9950a..1de1eab38 100644
--- a/Makefile
+++ b/Makefile
@@ -197,7 +197,7 @@ install_dev:
-@for i in `find $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
chmod -f 755 $$i; chmod -f 644 $$i/*.h; \
done;
- (NAME=`id -u`; GROUP=`id -g`; chown -R $$NAME.$$GROUP $(PREFIX)$(DEVEL_PREFIX))
+ -chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$/\1.\2/'` $(PREFIX)$(DEVEL_PREFIX)
ifeq ($(strip $(HAVE_SHARED)),true)
find lib/ -type l -name '*.so' -exec cp -a {} $(PREFIX)$(DEVEL_PREFIX)/lib ';'
endif