commit ccd996a0adf1eed4173ae9ea80df26a250547377 Author: Jan Pokorny jpokorny@redhat.com Date: Mon Oct 25 14:58:25 2010 +0200
spec: fix "cd bar && foo; cd.." if no such bar
- uses pushd, popd
luci.spec | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) --- diff --git a/luci.spec b/luci.spec index 1a09ffc..d96fdb4 100644 --- a/luci.spec +++ b/luci.spec @@ -61,9 +61,13 @@ python setup.py build rm -rf %{buildroot} mkdir -p %{buildroot}/var/log/luci python setup.py install --skip-build --root %{buildroot} -cd init.d && make DESTDIR=%{buildroot} RUNUSER=%{username} RUNGROUP=%{groupname} install;cd .. -cd config && make DESTDIR=%{buildroot} install;cd .. -cd lucipam && python setup.py install --root %{buildroot}; cd .. +pushd -n "$(pwd)" >/dev/null +cd init.d && make DESTDIR=%{buildroot} RUNUSER=%{username} RUNGROUP=%{groupname} install +popd >/dev/null; pushd -n "$(pwd)" >/dev/null +cd config && make DESTDIR=%{buildroot} install +popd >/dev/null; pushd -n "$(pwd)" >/dev/null +cd lucipam && python setup.py install --root %{buildroot} +popd >/dev/null
%clean rm -rf %{buildroot}
luci-commits@lists.fedorahosted.org