]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] rename: am__strip_lastword -> am.util.strip-last-word
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 Jul 2012 11:53:50 +0000 (13:53 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 Jul 2012 11:56:25 +0000 (13:56 +0200)
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/header-vars.am
t/internals.tap

index ef25345f21d20448929febb4a60238e3bc7caa22..af2c6efea58db1ce6e5f5e1c4d192381a4b8eee7 100644 (file)
@@ -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)))))
 
index 05e85bc6d61f7a6bad7c49ed9c50a9f97f162e1b..650907a951e4d5651c752d52dde74c8664c29552 100755 (executable)
@@ -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