Remove function to determine platform (unused)

This commit is contained in:
Fernando Schauenburg 2015-11-04 12:59:43 +01:00
parent dd85d1b55f
commit fffda87c9e

View file

@ -1,17 +1,4 @@
get_platform() {
local remove_spaces="s/ *//g"
local to_lower="y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
local get_version="s/[^0-9]*\(\([0-9]\+\.\?\)*\)/\1/"
local kernel=$(uname -s | sed "$remove_spaces; $to_lower")
local version=$(uname -r | sed "$get_version")
local machine=$(uname -m | sed "$remove_spaces; $to_lower")
echo "$kernel-$version-$machine"
}
#
# Environment variables # Environment variables
#
export PLATFORM=$(get_platform)
export EDITOR="vim" export EDITOR="vim"
export HISTSIZE="65536" export HISTSIZE="65536"
export HISTFILESIZE="$HISTSIZE" export HISTFILESIZE="$HISTSIZE"