forked from cspace-deployment/radiance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-bampfa-demo.sh
executable file
·45 lines (42 loc) · 3.02 KB
/
make-bampfa-demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# these are the files that need to be copied over on top of an existing cinefiles
# rails installation to "convert" it into a bampfa demo.
#
# instructions: 1) install the cinefiles app in the usual way. 2) run this script from within the 'radiance' repo
#
cd extras
# application functionality/config
cp etc/bampfa-custom/bampfa_application_helper.rb ../portal/app/helpers/application_helper.rb
cp etc/bampfa-custom/catalog_helper_behavior.rb ../portal/app/helpers/blacklight/catalog_helper_behavior.rb
cp etc/bampfa-custom/bampfa_catalog_controller.rb ../portal/app/controllers/catalog_controller.rb
cp etc/bampfa-custom/bampfa_gallery_controller.rb ../portal/app/controllers/gallery_controller.rb
cp etc/bampfa-custom/blacklight.yml ../portal/config/blacklight.yml
cp etc/bampfa-custom/bampfa_blacklight.en.yml ../portal/config/locales/blacklight.en.yml
cp etc/bampfa-custom/bampfa_extras.scss ../portal/app/assets/stylesheets/extras.scss
cp etc/bampfa-custom/global_alerts.rb ../portal/config/initializers/global_alerts.rb
cp etc/bampfa-custom/production.rb ../portal/config/environments/production.rb
# cp -r extras/etc/bampfa-custom/blacklight portal/lib/
cp etc/bampfa-custom/bampfa_routes.rb ../portal/config/routes.rb
# custom views
cp etc/bampfa-custom/bampfa_blacklight.html.erb ../portal/app/views/layouts/blacklight.html.erb
cp etc/bampfa-custom/bampfa_splash.html.erb ../portal/app/views/shared/_splash.html.erb
cp etc/bampfa-custom/bampfa_show_default.html.erb ../portal/app/views/catalog/_show_default.html.erb
cp etc/bampfa-custom/bampfa_show_preview.html.erb ../portal/app/views/catalog/_show_preview.html.erb
cp etc/bampfa-custom/bampfa_index_default.html.erb ../portal/app/views/catalog/_index_default.html.erb
cp etc/bampfa-custom/bampfa_user_util_links.html.erb ../portal/app/views/_user_util_links.html.erb
cp etc/bampfa-custom/bampfa_header_navbar.html.erb ../portal/app/views/shared/_header_navbar.html.erb
cp etc/bampfa-custom/bampfa_footer.html.erb ../portal/app/views/shared/_footer.html.erb
cp etc/bampfa-custom/bampfa_social.html.erb ../portal/app/views/shared/_social.html.erb
cp etc/bampfa-custom/_show_sidebar.html.erb ../portal/app/views/catalog/_show_sidebar.html.erb
#cp etc/bampfa-custom/_splash.html.erb ../portal/~/projects/search_cinefiles/app/views/shared/_splash.html.erb
cp -r etc/bampfa-custom/gallery ../portal/app/views/
# images
cp etc/bampfa-custom/header-logo-bampfa.png ../portal/public/header-logo-bampfa.png
cp etc/bampfa-custom/footer-logo-bampfa.png ../portal/public/footer-logo-bampfa.png
cp etc/bampfa-custom/imls.png ../portal/public/imls.png
cp etc/bampfa-custom/bampfa_favicon.png ../portal/public/favicon.png
cp etc/bampfa-custom/bampfa_site_image.jpg ../portal/public/site_image.jpg
# error pages
cp etc/bampfa-custom/bampfa_404.jpg ../portal/public/404.jpg
cp etc/bampfa-custom/bampfa_not_found.html.erb ../portal/app/views/errors/not_found.html.erb
cp etc/bampfa-custom/bampfa_500.jpg ../portal/public/500.jpg
cp etc/bampfa-custom/bampfa_internal_server_error.html.erb ../portal/app/views/errors/internal_server_error.html.erb