diff options
| author | Jonathan Bauer | 2014-07-28 17:27:34 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2014-07-28 17:27:34 +0200 |
| commit | 962df83e5fe66190fee18da05cdf71d74b81b991 (patch) | |
| tree | dee2e3baf0512728708a18a308dd7f259decf9d1 /helper/string.inc | |
| parent | [pvs2] also copy the qt4-svg package to stage32 (diff) | |
| parent | helpers/includes now should include an __init function and not just do stuff ... (diff) | |
| download | tm-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.inc | 6 |
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' |
