From 995be0d52ec3b4f75e9ac9f7a264c46ff02beeb4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 29 Jul 2013 13:43:34 +0200 Subject: 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) --- helper/fileutil.inc | 11 ----------- helper/string.inc | 9 +++++++++ 2 files changed, 9 insertions(+), 11 deletions(-) (limited to 'helper') 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]' +} + -- cgit v1.2.3-55-g7522