MDL-63422 lib: horde - review core loop / switch / case / continue
[moodle.git] / lib / horde / readme_moodle.txt
CommitLineData
7d1cfe4c
AN
1Description of import of Horde libraries
2
3# Download the Horde git repository. You will probably want to keep this
4 around for future updates:
5 git clone git@github.com:horde/horde.git
6# Checkout the version of horde you require:
0b821239 7 git checkout tags/horde_core-2.30.2 -b last
f77cd371
SL
8# Copy the following script and store it on /tmp, change it's execute bit, and run it, passing
9 in your path to Horde (the directory you've cloned the repository):
10 /tmp/copyhorde.sh ~/git/ext/horde/
77331aed
EL
11# Verify that these patches have been applied in the imported version. Apply them locally if not:
12 - https://github.com/horde/Mail/pull/1 (Mail component).
13 - https://github.com/horde/Imap_Client/pull/6 (IMAP Client component).
7d1cfe4c
AN
14
15====
16#!/bin/sh
17
18source=$1/framework
19target=./lib/horde
20
21echo "Copy Horde modules from $source to $target"
22
0b821239 23modules="Crypt_Blowfish Exception Idna Imap_Client Mail Mime Secret Socket_Client Stream Stream_Filter Stream_Wrapper Support Text_Flowed Translation Util"
7d1cfe4c
AN
24
25rm -rf $target/locale $target/framework
26mkdir -p $target/locale $target/framework/Horde
27
28for module in $modules
29do
30 echo "Copying $module"
31 cp -Rf $source/$module/lib/Horde/* $target/framework/Horde
32 locale=$source/$module/locale
33 if [ -d $locale ]
34 then
35 cp -Rf $locale/* $target/locale
36 fi
37done