build_gesso_devel.sh 790 Bytes
Newer Older
1
2
3
drupal_root_dir=${1-/var/www/drupal8}
gesso_branch_tag=${2-8.x-3.x}
gesso_root_dir=${3-/var/www/html}
Eric Bremner's avatar
Eric Bremner committed
4
5
6
7
8
9
10
11
12

cd $gesso_root_dir

if [ -d "uw_wcms_gesso" ]; then
  echo "Removing old Gesso ..."
  rm -rf "uw_wcms_gesso"
  echo "Done removing old Gesso."
fi

13
git clone "https://git.uwaterloo.ca/wcms/uw_wcms_gesso.git" || exit 1
Eric Bremner's avatar
Eric Bremner committed
14
15
16
17
18
19
20

cd "uw_wcms_gesso"

git checkout $gesso_branch_tag

sh build_gesso.sh

21
22
23
24
25
26
27
28
29
cd $drupal_root_dir/profiles/uw_base_profile/modules/features/uw_wcms_gesso

rm -rf source

rm -rf css

rm -rf js

rm -rf images
Eric Bremner's avatar
Eric Bremner committed
30
31
32

ln --force --symbolic "$gesso_root_dir/uw_wcms_gesso/source" source

33
ln --force --symbolic "$gesso_root_dir/uw_wcms_gesso/css" css
Eric Bremner's avatar
Eric Bremner committed
34

35
ln --force --symbolic "$gesso_root_dir/uw_wcms_gesso/js" js
36
37

ln --force --symbolic "$gesso_root_dir/uw_wcms_gesso/source/images" images