public
Last active

Roundcube release scripts

  • Download Gist
Makefile
Makefile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
GITREMOTE=git://github.com/roundcube/roundcubemail.git
GITBRANCH=release-1.0
VERSION=1.0.0
all: clean dist dependent framework
dist: roundcubemail-git
cp -r roundcubemail-git roundcubemail-$(VERSION)
tar czf roundcubemail-$(VERSION).tar.gz roundcubemail-$(VERSION)
rm -rf roundcubemail-$(VERSION)
dependent: roundcubemail-git toolchain
cp -r roundcubemail-git roundcubemail-$(VERSION)-dep
./makedependent.sh roundcubemail-$(VERSION)-dep
find roundcubemail-$(VERSION)-dep -name '*.orig' | xargs rm
tar czf roundcubemail-$(VERSION)-dep.tar.gz roundcubemail-$(VERSION)-dep
rm -rf roundcubemail-$(VERSION)-dep
framework: roundcubemail-git
cp -r roundcubemail-git/program/lib/Roundcube roundcube-framework-$(VERSION)
phpdoc -d roundcube-framework-$(VERSION) -t roundcube-framework-$(VERSION)/doc --title="Roundcube Framework" --defaultpackagename="Framework" --template=responsive-twig
rm -rf roundcube-framework-$(VERSION)/doc/phpdoc-cache*
tar czf roundcube-framework-$(VERSION).tar.gz roundcube-framework-$(VERSION)
rm -rf roundcube-framework-$(VERSION)
toolchain:
rm -f dependent.diff makedependent.sh
wget --no-check-certificate 'https://gist.github.com/thomascube/2725894/raw/dependent.diff'
wget --no-check-certificate 'https://gist.github.com/thomascube/2725894/raw/makedependent.sh'
chmod +x makedependent.sh
roundcubemail-git:
git clone $(GITREMOTE) roundcubemail-git
(cd roundcubemail-git; git checkout $(GITBRANCH))
(cd roundcubemail-git; bin/jsshrink.sh; bin/updatecss.sh; bin/cssshrink.sh)
rm -rf roundcubemail-git/tests roundcubemail-git/public_html roundcubemail-git/.git* roundcubemail-git/.tx*
 
clean:
rm -rf roundcubemail-git
dependent.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
diff --git a/INSTALL b/INSTALL
index c099fc6..64a708f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -15,8 +15,11 @@
- PCRE, DOM, JSON, XML, Session, Sockets (required)
- PHP Data Objects (PDO) with driver for either MySQL, PostgreSQL or SQLite (required)
Note: MySQL database driver requires PHP 5.3.7 or newer.
- - Libiconv, Zip (recommended)
- - Fileinfo, Mcrypt, mbstring (optional)
+ - Libiconv (required)
+ - Multibyte String (mbstring)
+ - Mcrypt (supporting Triple DES)
+ - Fileinfo (optional)
+ - Zip (recommended)
* PEAR packages distributed with Roundcube or external:
- Mail_Mime 1.8.1 or newer
- Mail_mimeDecode 1.5.5 or newer
diff --git a/README.md b/README.md
index 04b4d8f..ad81b4a 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,7 @@ INSTALLATION
------------
For detailed instructions on how to install Roundcube webmail on your server,
please refer to the INSTALL document in the same directory as this document.
+Please carefully read the REQUIREMENTS section of the INSTALL instructions.
If you're updating an older version of Roundcube please follow the steps
described in the UPGRADING file.
diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php
index a127eeb..b678a70 100644
--- a/program/lib/Roundcube/rcube.php
+++ b/program/lib/Roundcube/rcube.php
@@ -736,7 +736,7 @@ class rcube
mcrypt_module_close($td);
}
else {
- @include_once 'des.inc';
+ // @include_once 'des.inc'; (not shipped with this distribution)
if (function_exists('des')) {
$des_iv_size = 8;
@@ -791,7 +791,7 @@ class rcube
mcrypt_module_close($td);
}
else {
- @include_once 'des.inc';
+ // @include_once 'des.inc'; (not shipped with this distribution)
if (function_exists('des')) {
$des_iv_size = 8;
makedependent.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/sh
# remove all external components from a Roundcube checkout
 
scriptdir=`pwd`/`dirname $0`
 
cd $1
 
rm program/lib/utf8.class.php
rm program/lib/des.inc
rm -rf program/lib/encoding/
rm -rf program/lib/Auth/
rm -rf program/lib/Crypt/
rm -rf program/lib/Mail/
rm -rf program/lib/Net/
rm program/lib/PEAR.php
rm program/lib/PEAR5.php
rm -rf tests/
 
patch -p1 < $scriptdir/dependent.diff

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.