[SCM] live-tools branch, debian-next, updated. debian/3.0.3-1-5-gc253431

Daniel Baumann daniel at debian.org
Fri Jul 20 22:38:48 UTC 2012


The following commit has been merged in the debian-next branch:
commit c2534315b0d3464450293c9d2772d73c464c5bd4
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Jul 21 00:39:27 2012 +0200

    Using dynamic year in automatic manpage date translation rather than a hardcoded one.

diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh
index ef4b1e0..51d2ffa 100755
--- a/manpages/bin/update-version.sh
+++ b/manpages/bin/update-version.sh
@@ -35,7 +35,7 @@ do
 	then
 		for _FILE in po/${_LANGUAGE}/*.po
 		do
-			sed -i -e "s|^msgstr .*.2012\"$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" "${_FILE}"
+			sed -i -e "s|^msgstr .*.${YEAR}\"$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" "${_FILE}"
 		done
 	fi
 done
@@ -45,6 +45,6 @@ if ls po/pt_BR/*.po > /dev/null 2>&1
 then
 	for _FILE in po/pt_BR/*.po
 	do
-		sed -i -e "s|^msgstr .*-2012\"$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" "${_FILE}"
+		sed -i -e "s|^msgstr .*-${YEAR}\"$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" "${_FILE}"
 	done
 fi

-- 
live-tools



More information about the debian-live-changes mailing list