[geany/geany] 7dbf23: Remove intl_stats.sh script

Frank Lanitz git-noreply at xxxxx
Sun Oct 25 10:20:18 UTC 2020


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Sun, 25 Oct 2020 10:20:18 UTC
Commit:      7dbf234b69ade1294d5e1dbcf765b21db0e57baf
             https://github.com/geany/geany/commit/7dbf234b69ade1294d5e1dbcf765b21db0e57baf

Log Message:
-----------
Remove intl_stats.sh script

It's not working anymore and most functionaly can be founda at https://www.geany.org/contribute/translation/statistics/ anyway


Modified Paths:
--------------
    Makefile.am
    po/intl_stats.sh

Modified: Makefile.am
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -21,7 +21,6 @@ EXTRA_DIST = \
 	HACKING \
 	README.I18N \
 	README.Packagers \
-	po/intl_stats.sh \
 	intltool-extract.in \
 	intltool-merge.in \
 	intltool-update.in \


Modified: po/intl_stats.sh
99 lines changed, 0 insertions(+), 99 deletions(-)
===================================================================
@@ -1,99 +0,0 @@
-#!/bin/sh
-
-# Little shell script to display some basic statistics about Geany's translation
-# files. It also checks the menu accelerators.
-#
-# Copyright 2007 The Geany contributors
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
-check_accelerators=""
-linguas=""
-me=`basename $0`
-
-
-usage()
-{
-	echo "usage: $me [OPTION] [languages...]"
-	echo
-	echo "OPTIONs are:"
-	echo "-h --help           this help screen"
-  	echo "-a --accelerators   check also for menu accelerators"
-  	echo "languages           list of language codes which should be tested"
-  	echo
-  	echo "example: $me -a de fr hu"
-}
-
-
-# parse cmd line arguments
-while [ $# -gt 0 ]
-do
-	case $1 in
-		--accelerators)
-			check_accelerators="--check-accelerators=_"
-			;;
-		-a)
-		  check_accelerators="--check-accelerators=_"
-		  ;;
-		--help)
-		  usage;
-		  exit 1;
-		  ;;
-		-h)
-		  usage;
-		  exit 1;
-		  ;;
-		*)
-		  linguas="$linguas "$1
-		  ;;
-	esac
-	shift
-done
-
-
-
-# if no languages where specified on the command line, take all listed languages in LINGUAS
-if [ -z "$linguas" ]
-then
-	linguas=`sed -e '/^#/d' po/LINGUAS`
-fi
-
-# dash and zsh don't need the -e switch to echo, bash does
-# maybe there is a better way to detect whether we are running on a bash
-eswitch=""
-if [ "$BASH" ]
-then
-	eswitch="-e"
-fi
-
-# do the work
-if [ $check_accelerators ]
-then
-   for lang in $linguas
-   do
-     msgfmt --check --statistics $check_accelerators po/$lang.po;
-   done
-else
-   for lang in $linguas
-   do
-     # maybe the regexp can be optimized, regexps are not my best friends
-     creationdate=`grep "PO-Revision-Date:" po/$lang.po | sed 's/.*: \([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}[+|-][0-9]\{4\}\).*/\1/'`
-     printf "%s %s\t(%s):\t" "$eswitch" "$lang" "$creationdate"
-     msgfmt --check --statistics po/$lang.po;
-   done
-fi
-
-



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list