[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-76-g4de79b6

Daniel Baumann daniel at debian.org
Mon Nov 3 11:16:03 UTC 2008


The following commit has been merged in the master branch:
commit 67659ba6f825f620ae9685c0db6db37469a11a5d
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Nov 2 17:20:24 2008 +0100

    Using package variable to refere internally to live-helper.

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 at debian.org>"
 	echo

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list