diff --git a/utils/airtime-check-system b/utils/airtime-check-system index 164fac6f9..3c00235c2 100755 --- a/utils/airtime-check-system +++ b/utils/airtime-check-system @@ -1,26 +1,5 @@ #!/bin/bash #------------------------------------------------------------------------------- -# Copyright (c) 2010 Sourcefabric O.P.S. -# -# This file is part of the Airtime project. -# http://airtime.sourcefabric.org/ -# -# Airtime 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. -# -# Airtime 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 Airtime; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -#------------------------------------------------------------------------------- -#------------------------------------------------------------------------------- # This script for a correct system environment for Airtime. # # Absolute path to this script diff --git a/utils/airtime-log b/utils/airtime-log index c6053de5e..b606d9217 100755 --- a/utils/airtime-log +++ b/utils/airtime-log @@ -1,28 +1,4 @@ #!/bin/bash -#------------------------------------------------------------------------------- -# Copyright (c) 2010 Sourcefabric O.P.S. -# -# This file is part of the Airtime project. -# http://airtime.sourcefabric.org/ -# -# Airtime 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. -# -# Airtime 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 Airtime; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -#------------------------------------------------------------------------------- -#------------------------------------------------------------------------------- -# This script sets stream setting(max bitrate and number of streams in Airtime. -# # Absolute path to this script SCRIPT=`readlink -f $0` # Absolute directory this script is in diff --git a/utils/airtime-update-db-settings b/utils/airtime-update-db-settings index af255803a..5ed0fcd89 100755 --- a/utils/airtime-update-db-settings +++ b/utils/airtime-update-db-settings @@ -1,31 +1,4 @@ #!/bin/bash -#------------------------------------------------------------------------------- -# Copyright (c) 2010 Sourcefabric O.P.S. -# -# This file is part of the Airtime project. -# http://airtime.sourcefabric.org/ -# -# Airtime 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. -# -# Airtime 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 Airtime; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -#------------------------------------------------------------------------------- -#------------------------------------------------------------------------------- -# This script imports audio files to the Airtime storageServer. -# -# To get usage help, try the -h option -#------------------------------------------------------------------------------- - #------------------------------------------------------------------------------- # Determine directories, files #------------------------------------------------------------------------------- diff --git a/utils/serbianLatinToCyrillicConverter.py b/utils/serbianLatinToCyrillicConverter.py deleted file mode 100644 index 44c22cd32..000000000 --- a/utils/serbianLatinToCyrillicConverter.py +++ /dev/null @@ -1,92 +0,0 @@ -# -*- coding: utf-8 -*- -#------------------------------------------------------------------------------- -# Copyright (c) 2010 Sourcefabric O.P.S. -# -# This file is part of the Airtime project. -# http://airtime.sourcefabric.org/ -# To report bugs, send an e-mail to contact@sourcefabric.org -# -# Airtime 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. -# -# Airtime 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 Airtime; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -#------------------------------------------------------------------------------- - -#------------------------------------------------------------------------------- -# This script converts an ICU localization file from Serbian Latin -# to Serbian Cyrillic. -#------------------------------------------------------------------------------- - -import sys, re, codecs - -usageString = 'Usage: serbianLatinToCyrillicConverter.py' \ - ' inputfile outputfile' - -if len(sys.argv) >= 3: - fileNameIn = sys.argv[1] - fileNameOut = sys.argv[2] -else: - print usageString - sys.exit(1) - -oldLines = codecs.open(fileNameIn, 'r', 'utf-8').readlines() -newLines = [ ] - -def cyrillize(word): - if re.match(r'#.*#\Z', word): - return word - - compound = { u'lj' : u'љ', u'Lj' : u'Љ', - u'nj' : u'њ', u'Nj' : u'Њ', - u'dž' : u'џ', u'Dž' : u'Џ' } - simple = dict(zip(u'abvgdđežzijklmnoprstćufhcčšw', - u'абвгдђежзијклмнопрстћуфхцчшв')) - simple.update(dict(zip(u'ABVGDĐEŽZIJKLMNOPRSTĆUFHCČŠW', - u'АБВГДЂЕЖЗИЈКЛМНОПРСТЋУФХЦЧШВ'))) - exceptions = { ur'\н' : ur'\n', - u'Фаде ин' : u'Фејд ин', - u'Фаде оут' : u'Фејд аут', - u'фаде ин' : u'фејд ин', - u'фаде оут' : u'фејд аут', - u'есцапе' : u'ескејп', - u'Плаy' : u'Плеј', - u'Паусе' : u'Поуз', - u'трацк' : u'трак', - u'УРИ' : u'URI', - u'РДС' : u'RDS', - u'БПМ' : u'BPM', - u'ИСРЦ' : u'ISRC' } - - for latin, cyrillic in compound.iteritems(): - word = word.replace(latin, cyrillic) - for latin, cyrillic in simple.iteritems(): - word = word.replace(latin, cyrillic) - for bad, good in exceptions.iteritems(): - word = word.replace(bad, good) - - return word - -for line in oldLines: - m = re.match(r'(.*)"(.*)"(.*)\n', line) - if m: - line = m.groups()[0] + '"' \ - + cyrillize(m.groups()[1]) + '"' \ - + m.groups()[2] + '\n' - - elif line == 'sr_CS:table\n': - line = 'sr_CS_CYRILLIC:table\n' - - newLines += [line] - -codecs.open(fileNameOut, 'w', 'utf-8').writelines(newLines)