summaryrefslogtreecommitdiffstats
path: root/helper/string.inc
diff options
context:
space:
mode:
authorJonathan Bauer2014-07-28 17:27:34 +0200
committerJonathan Bauer2014-07-28 17:27:34 +0200
commit962df83e5fe66190fee18da05cdf71d74b81b991 (patch)
treedee2e3baf0512728708a18a308dd7f259decf9d1 /helper/string.inc
parent[pvs2] also copy the qt4-svg package to stage32 (diff)
parenthelpers/includes now should include an __init function and not just do stuff ... (diff)
downloadtm-scripts-962df83e5fe66190fee18da05cdf71d74b81b991.tar.gz
tm-scripts-962df83e5fe66190fee18da05cdf71d74b81b991.tar.xz
tm-scripts-962df83e5fe66190fee18da05cdf71d74b81b991.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'helper/string.inc')
-rw-r--r--helper/string.inc6
1 files changed, 0 insertions, 6 deletions
diff --git a/helper/string.inc b/helper/string.inc
index 75baf2ca..077f1719 100644
--- a/helper/string.inc
+++ b/helper/string.inc
@@ -12,12 +12,6 @@ itrim () {
sed -r 's/^\s+//g;s/\s+$//g'
}
-# usage: CANONICALIZED_STRING=$(canonalize <path>)
-# usage with relative path requires you to be in the correct directory.
-canonicalize() {
- cd -P -- "$(dirname -- "$1")" && printf '%s\n' "$(pwd -P)/$(basename -- "$1")"
-}
-
escape_search() {
sed -e 's/[]\/()$*.^|[]/\\&/g'