WordPress.org

Make WordPress Core

Ticket #29797: convert-all.sh

File convert-all.sh, 273 bytes (added by x2048, 5 years ago)

A script to convert .css files to their .scss equivalents. Run it in e.g. src/wp-admin/css/

Line 
1#!/bin/sh
2
3for file in *.css; do
4  echo "Converting $file";
5
6  basename="${file%.*}"
7  css=$basename.css
8  scss=$basename.scss
9
10  if [ -f $scss ]; then
11    echo "$scss file already exists. Not overwriting."
12  else
13    sass-convert --from css --to scss $css $scss
14  fi
15done