Commit 30f7ddce authored by Eric Bremner's avatar Eric Bremner Committed by Eric Bremner
Browse files

ISTWCMS_4487: updating scripts to use new uw_wcms_gesso module

parent 7c8a8cfa
drupal_root_dir=${1-/var/www/drupal8}
gesso_branch_tag=${2-8.x-3.x}
echo "Getting gesso files ..."
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
mkdir --parents source
mkdir --parents css
mkdir --parents js
mkdir --parents images
git clone https://git.uwaterloo.ca/wcms/uw_wcms_gesso.git || exit 1
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
cp -R images/* ../source/images
cd ..
rm -rf uw_wcms_gesso
echo "Done getting gesso files."
......@@ -9,10 +9,6 @@ echo "Starting rebuild of the profile..."
# reinstall. Using "composer update" will not always update modules
# referenced by branch instead of tag.
echo "Installing config..."
rm --recursive --force ../../config
git clone --depth 1 --branch wcms-3 ist-git@git.uwaterloo.ca:wcms/config.git ../../config
echo "Deleting the composer.lock file..."
rm --force composer.lock
......@@ -26,23 +22,11 @@ echo "Clearing the composer cache..."
composer clear-cache
echo "Done clearing the composer cache..."
if [ ${build_option} = 1 ]; then
echo "Running composer install..."
composer install --no-dev --no-interaction
echo ""
echo "Done rebuilding profile without dev modules."
echo ""
else
echo "Running composer install..."
composer install --no-interaction
echo ""
echo "Done rebuilding profile."
echo ""
fi
if [ ${build_option} = 1 ]; then
sh ./scripts/get_gesso_files.sh $drupal_root_dir $gesso_branch_tag
fi
echo "Running composer install..."
composer install --no-interaction
echo ""
echo "Done rebuilding profile."
echo ""
if [ ${build_option} = 2 ]; then
sh ./scripts/build_gesso_devel.sh $drupal_root_dir $gesso_branch_tag $gesso_root_dir
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment