Commit c6a892b9 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-3380: updating rebuild gesso script with more output

parent 8b9e3e79
......@@ -7,9 +7,8 @@ uw_wcms_gesso_root_path=${2:-/var/www/html}
drupal_directory=${3:-drupal8}
uw_profile_name=${4:-uw_base_profile}
fdsu_theme_resp_path=${5:-$DRUPAL_CORE_PATH/profiles/$uw_profile_name/themes/uw_fdsu_theme_resp}
echo "\nPATH TO THEME:"
echo "\nPATH TO THEME: "
echo "$fdsu_theme_resp_path\n"
echo "Rebuilding pattern lab ..."
if [ -d "$uw_wcms_gesso_root_path/uw_wcms_gesso" ]; then
echo "Removing old pattern lab ..."
......@@ -20,18 +19,17 @@ fi
echo "Bulding new UW gesso ..."
git clone "https://git.uwaterloo.ca/wcms/uw_wcms_gesso.git" "$uw_wcms_gesso_root_path/uw_wcms_gesso"
cd "$uw_wcms_gesso_root_path/uw_wcms_gesso"
echo "WORKING DIRECTORY ..."
pwd
echo "DONE WORKING DIRECTORY ..."
sh ./build_gesso.sh $uw_wcms_gesso_root_path
echo "Done building new UW gesso."
echo "Adding symbolic link inside theme directory ..."
echo "Adding symbolic links inside theme directory ..."
if [ -d "$fdsu_theme_resp_path/source" ]; then
echo "Removing old theme symbolic link to the source directory ..."
rm -rf "$fdsu_theme_resp_path/source"
echo "Done removing old theme symbolic link to the source directory."
fi
cd "$fdsu_theme_resp_path"
echo "Creating symbolic link to source directory ..."
ln -s "$uw_wcms_gesso_root_path/uw_wcms_gesso/source" "source"
echo "Done adding symbolic link inside theme directory."
echo "Done Creating symbolic link to source directory."
echo "Done adding symbolic links inside theme directory."
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