Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=3d5d907516a2d4067008bda96ed3d47471432430

commit 3d5d907516a2d4067008bda96ed3d47471432430
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Mon Jun 20 11:54:23 2011 +0200

tools/genpkgdbs: handle the case when i18n.logOutputEncoding git config entry 
is empty

diff --git a/tools/genpkgdbs b/tools/genpkgdbs
index d74aa67..70e3ee0 100755
--- a/tools/genpkgdbs
+++ b/tools/genpkgdbs
@@ -21,7 +21,11 @@ cd `dirname $0`/..
# Changelog
echo -n "generating ChangeLog.txt..."
stable=`git tag -l|grep '^[0-9]\+\.[0-9]$'|sed -n '$ p'`
-git log $stable^.. | iconv -c -f $(git config i18n.logOutputEncoding) -t utf8 
>ChangeLog.txt
+if [ -n "$(git config i18n.logOutputEncoding)" ]; then
+       git log $stable^.. | iconv -c -f $(git config i18n.logOutputEncoding) 
-t utf8 >ChangeLog.txt
+else
+       git log $stable^.. >ChangeLog.txt
+fi
echo " done"

# AUTHORS
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to