From 43bdf8c5446089091fc4d0f4ef2b21d9cc089707 Mon Sep 17 00:00:00 2001 From: Konstantin Stepanov Date: Wed, 22 Dec 2010 23:19:16 +0200 Subject: [PATCH] Makefile: use more busybox compatible commands --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a1d5389..a3456af 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,8 @@ BINFILES = dbuscron.py dbuscrontab.py migrate-dbus-scripts.py compile: .py.pyo .py.pyo: - sed -i.bak -e "s/%VERSION%/`git describe --tags`/" ./dbuscron/__init__.py + cp ./dbuscron/__init__.py ./dbuscron/__init__.py.bak + sed -i -e "s/%VERSION%/`git describe --tags`/" ./dbuscron/__init__.py python$(PYVERSION) -O -m compileall ./dbuscron mv -f ./dbuscron/__init__.py.bak ./dbuscron/__init__.py @@ -19,7 +20,8 @@ install: compile for f in $(BINFILES); do \ install -o root -g root -m 0755 ./$$f $(PREFIX)/`basename $$f .py`; done install -o root -g root -m 0755 -d $(PYMODULES)/dbuscron/shell - find ./dbuscron -name "*.pyo" | xargs -I {} install -o root -g root -m 0644 {} $(PYMODULES)/{} + for f in `find ./dbuscron -name "*.pyo"`; do \ + install -o root -g root -m 0644 $$f $(PYMODULES)/$$f; done install -o root -g root -m 0644 ./event.d/dbuscron $(DESTDIR)/etc/event.d/dbuscron test -f $(DESTDIR)/etc/dbuscrontab || \ install -o root -g root -m 0644 ./doc/dbuscrontab $(DESTDIR)/etc/dbuscrontab -- 1.7.9.5