Skip to content

Commit 39e0403

Browse files
authored
Merge pull request #9 from MITLibraries/scss_to_rails_url_syntax
Update image path to support rails syntax
2 parents baf7411 + 5d7bfda commit 39e0403

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ update: fetch ## Synchronize latest (auto runs clean and fetch first)
2525
cp -R tmp/mitlib-style-master/_assets/i/* vendor/assets/images
2626
cp -R tmp/mitlib-style-master/_assets/sass/* vendor/assets/stylesheets
2727

28+
rm -rf vendor/assets/stylesheets/apps/
29+
rm -f vendor/assets/stylesheets/ebooks-main.scss
30+
rm -f vendor/assets/stylesheets/guide-helper.scss
31+
rm -f vendor/assets/stylesheets/quicksubmit.sass
32+
33+
# We need to double $ so make doesn't think it's a variable and escape the $ for bash. Hence \$$.
34+
sed -i '' "s+url('#{\$$image-path}/vi-shape7-tp.svg')+image-url('vi-shape7-tp.svg')+g" vendor/assets/stylesheets/elements/*.scss
35+
2836
@tput setaf 2
2937
@tput bold
3038
@echo "Assets updated. Make sure to update version in:"
@@ -41,7 +49,7 @@ dist: ## Build the gem from the current gemspec
4149
@tput setaf 2
4250
@tput bold
4351
@echo "Finished building gem. To test locally add to your project Gemfile:"
44-
@echo " gem 'mitlibraries-theme', '$(shell pwd)'"
52+
@echo " gem 'mitlibraries-theme', path: '$(shell pwd)'"
4553
@tput sgr0
4654

4755
publish: ## Publish the gem version defined in the gemspec

0 commit comments

Comments
 (0)