summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-11-02 17:20:24 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:44 +0100
commit2b5f0a7a071fbc50d82246194bce2ab118f114a0 (patch)
treea93489fcec7be0c536a85b8ae5239af7d2cf7dcb /functions
parentd0276d0b16eab1827c81e462ad28a48318b227fc (diff)
downloadlive-build-2b5f0a7a071fbc50d82246194bce2ab118f114a0.zip
live-build-2b5f0a7a071fbc50d82246194bce2ab118f114a0.tar.gz
Using package variable to refere internally to live-helper.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/common.sh1
-rwxr-xr-xfunctions/l10n.sh4
-rwxr-xr-xfunctions/version.sh2
3 files changed, 4 insertions, 3 deletions
diff --git a/functions/common.sh b/functions/common.sh
index 3cd5707..4205ee4 100755
--- a/functions/common.sh
+++ b/functions/common.sh
@@ -8,6 +8,7 @@
# under certain conditions; see COPYING for details.
PROGRAM="$(basename ${0})"
+PACKAGE="live-helper"
VERSION="1.0.1"
PATH="${PWD}/scripts:${PATH}"
diff --git a/functions/l10n.sh b/functions/l10n.sh
index 4e6c9e9..029c7f7 100755
--- a/functions/l10n.sh
+++ b/functions/l10n.sh
@@ -7,12 +7,12 @@
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
-if [ -x "$(which gettext.sh 2>/dev/null)" ] && Find_files /usr/share/locale/*/LC_MESSAGES/${PROGRAM}.mo
+if [ -x "$(which gettext.sh 2>/dev/null)" ] && Find_files /usr/share/locale/*/LC_MESSAGES/${PACKAGE}.mo
then
_L10N="enabled"
# gettext domain (.mo file name)
- TEXTDOMAIN="${PROGRAM}"
+ TEXTDOMAIN="${PACKAGE}"
export TEXTDOMAIN
# locale dir for gettext codes
diff --git a/functions/version.sh b/functions/version.sh
index ba0a339..ca15337 100755
--- a/functions/version.sh
+++ b/functions/version.sh
@@ -10,7 +10,7 @@
Version ()
{
Echo "%s, version %s" "${PROGRAM}" "${VERSION}"
- Echo "This program is a part of live-helper."
+ Echo "This program is a part of %s" "${PACKAGE}" "."
echo
Echo "Copyright (C) 2006-2008 Daniel Baumann <daniel@debian.org>"
echo