diff --git a/.gitattributes b/.gitattributes index 810816e8fc..7346ac68d8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5600,7 +5600,6 @@ tools/chmmaker/unit1.lfm svneol=native#text/plain tools/chmmaker/unit1.lrs svneol=native#text/pascal tools/chmmaker/unit1.pas svneol=native#text/plain tools/compile_all.sh svneol=native#text/plain -tools/convert_po_file_to_utf-8.sh svneol=native#text/plain tools/copy_po_files_to_lazarus_sources.sh -text svneol=native#application/x-sh tools/debugserver/README.txt svneol=native#text/plain tools/debugserver/debugserver.ico -text diff --git a/tools/convert_po_file_to_utf-8.sh b/tools/convert_po_file_to_utf-8.sh deleted file mode 100755 index 56f70b8b80..0000000000 --- a/tools/convert_po_file_to_utf-8.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash -# -# Author: Mattias Gaertner -# -# converts a .po files to UTF-8 - -set -e -#set -x - -POFile=$1 -if [ -f "$POFile" ]; then - OldCharSet=$(cat $POFile | egrep '^".* charset=' | sed -e 's/.*charset=\(.*\)"/\1/' -e 's/\\n//') - echo $OldCharSet - if [ -n "$OldCharSet"="UTF-8" ]; then - iconv --from-code=$OldCharSet --to-code=UTF-8 $POFile > $POFile.tmp - cat $POFile.tmp | sed -e 's/\(^".* charset\)='$OldCharSet'/\1=UTF-8/' > $POFile - rm $POFile.tmp - fi -else - echo Usage: $0 po-file - exit -1 -fi -