get_gesso_files.sh 645 Bytes
Newer Older
1
2
3
4
drupal_root_dir=${1-/var/www/drupal8}
gesso_branch_tag=${2-8.x-3.x}

echo "Getting gesso files ..."
5
6
mkdir --parents $drupal_root_dir/profiles/uw_base_profile/themes/uw_fdsu_theme_resp
cd $drupal_root_dir/profiles/uw_base_profile/themes/uw_fdsu_theme_resp || exit 1
7
8
9
mkdir --parents source
mkdir --parents css
mkdir --parents js
10
mkdir --parents images
11
git clone https://git.uwaterloo.ca/wcms/uw_wcms_gesso.git || exit 1
12
13
14
15
16
cd uw_wcms_gesso
git checkout $gesso_tag_branch
cp -R source/* ../source
cp css/styles.css ../css
cp js/component_scripts.min.js ../js
17
cp -R images/* ../source/images
18
19
cd ..
rm -rf uw_wcms_gesso
20
echo "Done getting gesso files."