forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme_moodle.txt
35 lines (28 loc) · 1.12 KB
/
readme_moodle.txt
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
Description of import of Horde libraries
# Download the Horde git repository. You will probably want to keep this
around for future updates:
git clone [email protected]:horde/horde.git
# Checkout the version of horde you require:
git checkout horde-5.2.7
# Copy the following script and store it on /tmp, change it's execute bit, and run it, passing
in your path to Horde (the directory you've cloned the repository):
/tmp/copyhorde.sh ~/git/ext/horde/
# MDL-52361 patched for PHP7 compatibility, after upgrade make sure it's updated upstream and remove this line
====
#!/bin/sh
source=$1/framework
target=./lib/horde
echo "Copy Horde modules from $source to $target"
modules="Crypt_Blowfish Exception Imap_Client Mail Mime Secret Socket_Client Stream Stream_Filter Stream_Wrapper Support Text_Flowed Translation Util"
rm -rf $target/locale $target/framework
mkdir -p $target/locale $target/framework/Horde
for module in $modules
do
echo "Copying $module"
cp -Rf $source/$module/lib/Horde/* $target/framework/Horde
locale=$source/$module/locale
if [ -d $locale ]
then
cp -Rf $locale/* $target/locale
fi
done