automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH 21/33] [ng] rename: am__strip_lastword -> am.util.s


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH 21/33] [ng] rename: am__strip_lastword -> am.util.strip-last-word
Date: Sat, 21 Jul 2012 14:55:53 +0200

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/am/header-vars.am |    6 +++---
 t/internals.tap       |   18 +++++++++---------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am
index ef25345..af2c6ef 100644
--- a/lib/am/header-vars.am
+++ b/lib/am/header-vars.am
@@ -149,7 +149,7 @@ am.make.dry-run := \
 am.chars.empty :=
 
 am.util.strip-first-word = $(wordlist 2,$(words $(1)),$(1))
-am__strip_lastword  = $(wordlist 2,$(words $(1)),dummy $(1))
+am.util.strip-last-word  = $(wordlist 2,$(words $(1)),dummy $(1))
 
 ## Remove repeated elements from the given list (without reordering),
 ## and return the reduced list.
@@ -159,10 +159,10 @@ am__uniq = $(strip \
 ## Call the function recursively on the list of all the elements
 ## but the last one.
     $(call am__uniq, \
-      $(call am__strip_lastword, $(1))) \
+      $(call am.util.strip-last-word, $(1))) \
 ## And append the last element, unless it was already present.
       $(if $(filter $(lastword $(1)), \
-                    $(call am__strip_lastword, $(1))), \
+                    $(call am.util.strip-last-word, $(1))), \
            $(am.chars.empty), \
            $(lastword $(1)))))
 
diff --git a/t/internals.tap b/t/internals.tap
index 05e85bc..650907a 100755
--- a/t/internals.tap
+++ b/t/internals.tap
@@ -54,14 +54,14 @@ test-strip-first-word:
        test '$(call am.util.strip-first-word,1 2 3 4 5 6 7 8)' = '2 3 4 5 6 7 
8'
        test '$(call am.util.strip-first-word,  1         2     )' = '2'
 
-.PHONY: test-strip-lastword
-test-strip-lastword:
-       test '$(call am__strip_lastword,)'                 = ''
-       test '$(call am__strip_lastword,1)'                = ''
-       test '$(call am__strip_lastword,1 1)'              = '1'
-       test '$(call am__strip_lastword,1 2)'              = '1'
-       test '$(call am__strip_lastword,1 2 3 4 5 6 7 8)'  = '1 2 3 4 5 6 7'
-       test '$(call am__strip_lastword,  1       2     )' = '1'
+.PHONY: test-strip-last-word
+test-strip-last-word:
+       test '$(call am.util.strip-last-word,)'                 = ''
+       test '$(call am.util.strip-last-word,1)'                = ''
+       test '$(call am.util.strip-last-word,1 1)'              = '1'
+       test '$(call am.util.strip-last-word,1 2)'              = '1'
+       test '$(call am.util.strip-last-word,1 2 3 4 5 6 7 8)'  = '1 2 3 4 5 6 
7'
+       test '$(call am.util.strip-last-word,  1          2     )' = '1'
 
 .PHONY: test-uniq
 test-uniq:
@@ -186,7 +186,7 @@ test-newline-3:
 END
 
 command_ok_  am.util.strip-first-word   $MAKE test-strip-first-word
-command_ok_  am__strip_lastword         $MAKE test-strip-lastword
+command_ok_  am.util.strip-last-word    $MAKE test-strip-last-word
 command_ok_  am__uniq                   $MAKE test-uniq
 command_ok_  am__test_strip_suffixes    $MAKE test-strip-suffixes
 command_ok_  am__tolower                $MAKE test-tolower
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]