diff --git a/doc-src/SASS_CHANGELOG.md b/doc-src/SASS_CHANGELOG.md index 606781a4..13b0898b 100644 --- a/doc-src/SASS_CHANGELOG.md +++ b/doc-src/SASS_CHANGELOG.md @@ -63,6 +63,16 @@ Note that if `=` is used, SassScript will be interpreted as backwards-compatibly as posssible. In particular, the changes listed below don't apply in an `=` context. +The `sass-convert` command-line tool can be used +to upgrade Sass files to the new syntax using the `--in-place` flag. +For example: + + # Upgrade style.sass: + $ sass-convert --in-place style.sass + + # Upgrade all Sass files: + $ find -name '*.sass' -exec sass-convert --in-place {} \; + ##### Quoted Strings Quoted strings (e.g. `"foo"`) in SassScript now render with quotes. diff --git a/lib/sass/script.rb b/lib/sass/script.rb index 5a31a81a..25ff5d6b 100644 --- a/lib/sass/script.rb +++ b/lib/sass/script.rb @@ -45,6 +45,8 @@ DEPRECATION WARNING: On line #{line}, character #{offset}#{" of '#{filename}'" if filename} Variables with ! have been deprecated and will be removed in version 3.2. Use \"$#{varname}\" instead. + +You can use `sass-convert --in-place --from sass2 file.sass' to convert files automatically. MESSAGE end @@ -54,6 +56,8 @@ DEPRECATION WARNING: On line #{line}#{", character #{offset}" if offset}#{" of '#{filename}'" if filename} Setting #{types} with = has been deprecated and will be removed in version 3.2. Use "#{name}: #{val}" instead. + +You can use `sass-convert --in-place --from sass2 file.sass' to convert files automatically. MESSAGE end end