[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH 20/33] [ng] rename: am__strip_firstword -> am.util.
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH 20/33] [ng] rename: am__strip_firstword -> am.util.strip-first-word |
Date: |
Sat, 21 Jul 2012 14:55:52 +0200 |
Signed-off-by: Stefano Lattarini <address@hidden>
---
lib/am/header-vars.am | 4 ++--
t/internals.tap | 18 +++++++++---------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am
index c0e15ba..ef25345 100644
--- a/lib/am/header-vars.am
+++ b/lib/am/header-vars.am
@@ -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))
diff --git a/t/internals.tap b/t/internals.tap
index 1012be6..05e85bc 100755
--- a/t/internals.tap
+++ b/t/internals.tap
@@ -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
--
1.7.10.4
- [Automake-NG] [PATCH 09/33] [ng] rename: am__comma -> am.chars.comma, (continued)
- [Automake-NG] [PATCH 09/33] [ng] rename: am__comma -> am.chars.comma, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 10/33] [ng] rename: am__dollar -> am.chars.dollar, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 11/33] [ng] rename: am__pound -> am.chars.hash, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 12/33] [ng] rename: am__lparen -> am.chars.lparen, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 13/33] [ng] rename: am__rparen -> am.chars.rparen, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 14/33] [ng] rename: am__bquote -> am.chars.bquote, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 15/33] [ng] rename: am__dquote -> am.chars.dquote, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 16/33] [ng] rename: am__squote -> am.chars.squote, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 17/33] [ng] cosmetics: fix an imprecise comment, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 18/33] [ng] rename: am__empty -> am.chars.empty, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 20/33] [ng] rename: am__strip_firstword -> am.util.strip-first-word,
Stefano Lattarini <=
- [Automake-NG] [PATCH 19/33] [ng] rename: am__make_dryrun -> am.make.dry-run, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 21/33] [ng] rename: am__strip_lastword -> am.util.strip-last-word, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 22/33] [ng] am__uniq: use $0 for recursive invocations, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 23/33] [ng] rename: am__uniq -> am.util.uniq, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 24/33] [ng] am__strip_suffixes: use $0 for recursive invocations, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 25/33] [ng] rename: am__strip_suffixes -> am.util.strip-suffixes, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 26/33] [ng] rename: am__private_suffix -> am.hack.private-suffix, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 27/33] [ng] rename: am__handle_exeext -> am.conf.handle-exeext, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 28/33] [ng] rename: am__vpath_rewrite -> am.vpath.rewrite, Stefano Lattarini, 2012/07/21
- [Automake-NG] [PATCH 29/33] [ng] rename: am__using_parallel_tests -> am.conf.using-parallel-tests, Stefano Lattarini, 2012/07/21