[Reproducible-commits] [cdbs] 03/41: Introduce new expansion variables cdbs_uc cdbs_lc.

Mattia Rizzolo mattia at debian.org
Tue May 10 14:42:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch reproducible
in repository cdbs.

commit cd3e219adf9d945aab56580100810ee77818683b
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Jan 20 11:52:19 2014 +0100

    Introduce new expansion variables cdbs_uc cdbs_lc.
---
 1/rules/buildvars.mk.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/1/rules/buildvars.mk.in b/1/rules/buildvars.mk.in
index 9af1b0f..f8cfe6f 100644
--- a/1/rules/buildvars.mk.in
+++ b/1/rules/buildvars.mk.in
@@ -122,6 +122,10 @@ open_parenthesis = (
 close_parenthesis = )
 cdbs_delimit = $(firstword $1)$(foreach word,$(wordlist 2,$(words $1),$1),$2$(word))
 
+# workaround for lack of uppercase/lowercase functions in make
+cdbs_uc = $(shell echo '$1' | tr '[:lower:]' '[:upper:]')
+cdbs_lc = $(shell echo '$1' | tr '[:upper:]' '[:lower:]')
+
 # Resolve VAR_ALL and either VAR_pkg or VAR_DEFAULT, space- or custom-delimited
 #  * VAR_ALL applies to all packages
 #  * VAR_pkg applies to current package

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/cdbs.git



More information about the Reproducible-commits mailing list