[parted-devel] [PATCH 3/3] Tweak distcheck.

Joel Granados Moreno jgranado at redhat.com
Tue Jun 9 11:05:42 UTC 2009


* distcheck.mk (install-transform-check) : The binaries will be located
  in /sbin instead of /bin.
* distcheck.mk (my-instcheck) : Treat "i" as a variable by prepending two
  "$".
---
 dist-check.mk |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dist-check.mk b/dist-check.mk
index 16f3859..e6a95d0 100644
--- a/dist-check.mk
+++ b/dist-check.mk
@@ -46,7 +46,7 @@ define install-transform-check
     && rm -rf $(pfx)					\
     && $(MAKE) program_transform_name='s/.*/zyx/'	\
       prefix=$(pfx) install				\
-    && test "$$(echo $(pfx)/bin/*)" = "$(pfx)/bin/zyx"	\
+    && test "$$(echo $(pfx)/sbin/*)" = "$(pfx)/sbin/zyx"\
     && test "$$(find $(pfx)/share/man -type f|sed 's,.*/,,;s,\..*,,')" = "zyx"
 endef
 
@@ -54,11 +54,11 @@ endef
 # Note that neither the binary, ginstall, nor the ].1 man page is installed.
 define my-instcheck
   $(MAKE) prefix=$(pfx) install				\
-    && test ! -f $(pfx)/bin/ginstall			\
+    && test ! -f $(pfx)/sbin/ginstall			\
     && { fail=0;					\
       for i in $(built_programs); do			\
-        test "$$i" = ginstall && i=install;		\
-        for j in "$(pfx)/bin/$$i"			\
+        test "$$i" = ginstall && $$i=install;		\
+        for j in "$(pfx)/sbin/$$i"			\
                  "$(pfx)/share/man/man1/$$i.1"; do	\
           case $$j in *'[.1') continue;; esac;		\
           test -f "$$j" && :				\
-- 
1.6.0.6




More information about the parted-devel mailing list