-
Notifications
You must be signed in to change notification settings - Fork 13
/
install_islandora_xquery.sh
executable file
·45 lines (38 loc) · 1.1 KB
/
install_islandora_xquery.sh
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
#Go home.
cd ~
# Get zorba
sudo add-apt-repository ppa:juan457/zorba
sudo apt-get update
sudo apt-get install zorba
# Compile xdiff PHP extension and dependencies
wget http://www.xmailserver.org/libxdiff-0.23.tar.gz
tar -xzf libxdiff-0.23.tar.gz
rm libxdiff-0.23.tar.gz
cd libxdiff-0.23
./configure
make
sudo make install
cd ~
sudo pear install pecl/xdiff-1.5.2
rm -rf libxdiff-0.23
# Add the xdiff extension to php configuration
echo "extension=xdiff.so" > xdiff.ini
sudo cp xdiff.ini /etc/php5/mods-available/
sudo php5enmod xdiff
rm xdiff.ini
# Restart apache so extension kicks in
sudo service apache2 restart
# Add the php libraries using the libraries api
wget -O geshi.tar.gz http://sourceforge.net/projects/geshi/files/latest/download
tar xvf geshi.tar.gz
cp -r geshi /var/www/drupal7/sites/all/libraries
rm geshi.tar.gz
rm -rf geshi
# Pull down the code from github
cd /var/www/drupal7/sites/all/modules
git clone https://github.com/discoverygarden/islandora_object_lock.git
git clone https://github.com/discoverygarden/islandora_xquery.git
drush en islandora_object_lock
drush en islandora_xquery
#Go home.
cd ~