aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/exheres-0
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-02-14 05:29:47 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-02-14 16:39:40 +0000
commitea4d3f5df4695119b5be9c1d202abdef40a12fb4 (patch)
tree2eacbff7c2e9206a73279eb9e3577611c1959375 /paludis/repositories/e/ebuild/exheres-0
parent990c3d22ab79a76d6610f65df63efc14a1167300 (diff)
downloadpaludis-ea4d3f5df4695119b5be9c1d202abdef40a12fb4.tar.gz
paludis-ea4d3f5df4695119b5be9c1d202abdef40a12fb4.tar.xz
Dots and plus are allowed in exlib names but not in shell variable names.
Diffstat (limited to 'paludis/repositories/e/ebuild/exheres-0')
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
index e6f3eb282..a26adc84f 100644
--- a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
@@ -37,7 +37,10 @@ exparam()
exparam_var_name()
{
- echo EXPARAMVAR_${1//-/__dash__}
+ local var=EXPARAMVAR_${1//-/__dash__}
+ var=${var//./__dot__}
+ var=${var//+/__plus__}
+ echo ${var}
}
exparam_print()