Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_base_profile
Commits
30f7ddce
Commit
30f7ddce
authored
Dec 22, 2020
by
Eric Bremner
Committed by
Eric Bremner
Jan 07, 2021
Browse files
ISTWCMS_4487: updating scripts to use new uw_wcms_gesso module
parent
7c8a8cfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/get_gesso_files.sh
deleted
100755 → 0
View file @
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."
scripts/rebuild_profile.sh
View file @
30f7ddce
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment