summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cleandb.sh4
-rwxr-xr-xbin/decrypt.sh3
-rwxr-xr-xbin/dumpschema.sh4
-rwxr-xr-xbin/exportgettext.sh6
-rwxr-xr-xbin/importgettext.sh13
-rwxr-xr-xbin/indexcontacts.sh4
-rwxr-xr-xbin/installto.sh3
-rwxr-xr-xbin/update.sh3
8 files changed, 5 insertions, 35 deletions
diff --git a/bin/cleandb.sh b/bin/cleandb.sh
index 174cbb1f5..ecf258320 100755
--- a/bin/cleandb.sh
+++ b/bin/cleandb.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env php
<?php
/*
-
+-----------------------------------------------------------------------+
| bin/cleandb.sh |
| |
@@ -18,9 +17,6 @@
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
diff --git a/bin/decrypt.sh b/bin/decrypt.sh
index d257f9bb4..95fdefc42 100755
--- a/bin/decrypt.sh
+++ b/bin/decrypt.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env php
<?php
/*
-
+-----------------------------------------------------------------------+
| bin/decrypt.sh |
| |
@@ -18,8 +17,6 @@
+-----------------------------------------------------------------------+
| Author: Tomas Tevesz <ice@extreme.hu> |
+-----------------------------------------------------------------------+
-
- $Id$
*/
/*-
diff --git a/bin/dumpschema.sh b/bin/dumpschema.sh
index e44b292a8..6d5cde723 100755
--- a/bin/dumpschema.sh
+++ b/bin/dumpschema.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env php
<?php
/*
-
+-----------------------------------------------------------------------+
| bin/dumpschema.sh |
| |
@@ -18,9 +17,6 @@
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
diff --git a/bin/exportgettext.sh b/bin/exportgettext.sh
index c1e6302f1..f4a3fdbf3 100755
--- a/bin/exportgettext.sh
+++ b/bin/exportgettext.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env php
<?php
/*
-
+-----------------------------------------------------------------------+
| bin/exportgettext.sh |
| |
@@ -14,9 +13,6 @@
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
@@ -205,7 +201,7 @@ EOF;
$msgid = $is_pot ? $msgstr : ($GLOBALS['en_US'][$label] ?: $label);
$messages[$msgid][] = $label;
}
-
+
foreach ($messages as $msgid => $labels) {
$out .= "\n";
foreach ($labels as $label)
diff --git a/bin/importgettext.sh b/bin/importgettext.sh
index aab61013b..a63ac0054 100755
--- a/bin/importgettext.sh
+++ b/bin/importgettext.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env php
<?php
/*
-
+-----------------------------------------------------------------------+
| bin/importgettext.sh |
| |
@@ -14,9 +13,6 @@
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
@@ -39,7 +35,7 @@ else if (is_file($srcdir)) {
foreach ($out as $outfn => $texts) {
$lang = preg_match('!/([a-z]{2}(_[A-Z]{2})?)[./]!', $outfn, $m) ? $m[1] : '';
$varname = strpos($outfn, 'messages.inc') !== false ? 'messages' : 'labels';
-
+
$header = <<<EOF
<?php
@@ -54,14 +50,13 @@ foreach ($out as $outfn => $texts) {
+-----------------------------------------------------------------------+
| Author: %-62s|
+-----------------------------------------------------------------------+
- @version %s$
*/
$%s = array();
EOF;
- $output = sprintf($header, $lang, $varname.'.inc', date('Y'), $texts['_translator'], '$Id', $varname);
+ $output = sprintf($header, $lang, $varname.'.inc', date('Y'), $texts['_translator'], $varname);
foreach ($texts as $label => $value) {
if (is_array($value)) { var_dump($outfn, $label, $value); exit; }
@@ -131,7 +126,7 @@ function import_file($fn)
$out[$file][$label] = $msgstr;
}
}
-
+
$msgid = null;
$msgstr = '';
$dests = array();
@@ -167,7 +162,7 @@ function import_file($fn)
$out[$file]['_translator'] = $translator;
}
}
-
+
return $language ? $out : array();
}
diff --git a/bin/indexcontacts.sh b/bin/indexcontacts.sh
index 3f1e8119a..a9a5a952a 100755
--- a/bin/indexcontacts.sh
+++ b/bin/indexcontacts.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env php
<?php
/*
-
+-----------------------------------------------------------------------+
| bin/indexcontacts.sh |
| |
@@ -18,9 +17,6 @@
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
diff --git a/bin/installto.sh b/bin/installto.sh
index eb43b99d4..3a64476a6 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -17,9 +17,6 @@
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
diff --git a/bin/update.sh b/bin/update.sh
index 46874ebf8..60dc95b9d 100755
--- a/bin/update.sh
+++ b/bin/update.sh
@@ -17,9 +17,6 @@
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
-
- $Id$
-
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );