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

index c0e15ba0d2552d9826c64c8c1bebf024ab7f8102..ef25345f21d20448929febb4a60238e3bc7caa22 100644 (file)
@@ -148,7 +148,7 @@ am.make.dry-run := \
 # definition of $(am__newline) below for a significant example.
 am.chars.empty :=
 
-am__strip_firstword = $(wordlist 2,$(words $(1)),$(1))
+am.util.strip-first-word = $(wordlist 2,$(words $(1)),$(1))
 am__strip_lastword  = $(wordlist 2,$(words $(1)),dummy $(1))
 
 ## Remove repeated elements from the given list (without reordering),
@@ -255,7 +255,7 @@ am__strip_suffixes = $(strip \
     $(strip $1), \
       $(patsubst %$(am__private_suffix),%, \
         $(call am__strip_suffixes, \
-          $(call am__strip_firstword,$1), \
+          $(call am.util.strip-first-word,$1), \
           $(patsubst %$(firstword $1),%$(am__private_suffix),$2))), \
     $2))
 
index 1012be6a6db09c40a07ee23dd13c46d7b94c7e89..05e85bc6d61f7a6bad7c49ed9c50a9f97f162e1b 100755 (executable)
@@ -45,14 +45,14 @@ default:
        @echo Please select an explicit test; exit 1
 .PHONY: default
 
-.PHONY: test-strip-firstword
-test-strip-firstword:
-       test '$(call am__strip_firstword,)'                = ''
-       test '$(call am__strip_firstword,1)'               = ''
-       test '$(call am__strip_firstword,1 1)'             = '1'
-       test '$(call am__strip_firstword,1 2)'             = '2'
-       test '$(call am__strip_firstword,1 2 3 4 5 6 7 8)' = '2 3 4 5 6 7 8'
-       test '$(call am__strip_firstword,  1      2     )' = '2'
+.PHONY: test-strip-first-word
+test-strip-first-word:
+       test '$(call am.util.strip-first-word,)'                = ''
+       test '$(call am.util.strip-first-word,1)'               = ''
+       test '$(call am.util.strip-first-word,1 1)'             = '1'
+       test '$(call am.util.strip-first-word,1 2)'             = '2'
+       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:
@@ -185,7 +185,7 @@ test-newline-3:
        test -f n3
 END
 
-command_ok_  am__strip_firstword        $MAKE test-strip-firstword
+command_ok_  am.util.strip-first-word   $MAKE test-strip-first-word
 command_ok_  am__strip_lastword         $MAKE test-strip-lastword
 command_ok_  am__uniq                   $MAKE test-uniq
 command_ok_  am__test_strip_suffixes    $MAKE test-strip-suffixes