diff options
author | Simon Rettberg | 2013-07-29 13:43:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2013-07-29 13:43:34 +0200 |
commit | 995be0d52ec3b4f75e9ac9f7a264c46ff02beeb4 (patch) | |
tree | b2e9a27b6e75a138577098597212747a3707843a /helper | |
parent | [demo-server] Added hash check (md5) for downloaded files (not for unused (diff) | |
download | tm-scripts-995be0d52ec3b4f75e9ac9f7a264c46ff02beeb4.tar.gz tm-scripts-995be0d52ec3b4f75e9ac9f7a264c46ff02beeb4.tar.xz tm-scripts-995be0d52ec3b4f75e9ac9f7a264c46ff02beeb4.zip |
<BREAKING> Start to implement distribution specific module configs instead of
just packet-manager specific. This requires adapting the configs of all modules
(but not their build scripts)
Diffstat (limited to 'helper')
-rw-r--r-- | helper/fileutil.inc | 11 | ||||
-rw-r--r-- | helper/string.inc | 9 |
2 files changed, 9 insertions, 11 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 192758ff..8d61344b 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -1,14 +1,3 @@ -# one time jobs - -# determine packet manager: -if [ ! -z "$(which apt-get 2>/dev/null)" ]; then - PACKET_MANAGER="apt" -elif [ ! -z "$(which zypper 2>/dev/null)" ]; then - PACKET_MANAGER="zypper" -else - perror "Could not determine this platform's packet manager" -fi - # # copy list of files using tar tarcopy () { diff --git a/helper/string.inc b/helper/string.inc index 04809a93..4c6b9778 100644 --- a/helper/string.inc +++ b/helper/string.inc @@ -26,3 +26,12 @@ escape_search() { escape_replace() { sed -e 's/[\/&]/\\&/g' } + +tolower () { + tr '[A-Z]' '[a-z]' +} + +toupper () { + tr '[a-z]' '[A-Z]' +} + |