[gegl] fix determining non-workshop operations directories

Nils Philippsen nphilipp at fedoraproject.org
Tue Apr 3 13:03:16 UTC 2012


commit ea767d3ae3ac9232a0b5d20d307e7b2e053cbeaf
Author: Nils Philippsen <nils at redhat.com>
Date:   Tue Apr 3 15:02:58 2012 +0200

    fix determining non-workshop operations directories

 gegl.spec |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gegl.spec b/gegl.spec
index 30a1b10..08d8647 100644
--- a/gegl.spec
+++ b/gegl.spec
@@ -129,8 +129,7 @@ rm -rf %{buildroot}
 make DESTDIR=%{buildroot} install INSTALL='install -p'
 pushd operations
 # favor non-workshop binaries
-subdirs_clause="$(grep "^SUBDIRS *=" Makefile | sed 's|\$([^)]*)||g;s| *= *\(.*[^   ]\)[    ]*$|="\1"|g')"
-make $subdirs_clause DESTDIR=%{buildroot} install INSTALL='install -p'
+make SUBDIRS="$(for d in */; do d="${d%/}"; if [ "$d" != "workshop" ]; then echo -n " $d"; fi; done)" DESTDIR=%{buildroot} install INSTALL='install -p'
 popd
 
 rm -f %{buildroot}%{_libdir}/*.la


More information about the scm-commits mailing list