Skip to content

Instantly share code, notes, and snippets.

@davidscotson
Created June 29, 2016 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidscotson/04b8a6208bfac2397d8107971f11186d to your computer and use it in GitHub Desktop.
Save davidscotson/04b8a6208bfac2397d8107971f11186d to your computer and use it in GitHub Desktop.
<?php
// A list of old CSS classes that can be grepped for in the code without
// causing false positives. See http://getbootstrap.com/migration/
$oldstuff = array(
'span[0-9]',
'row-fluid',
'btn-mini',
'btn-small',
'btn-large',
'hero-unit',
'img-polariod',
'alert-error',
'label-important',
'input-block-lever',
'control-group',
'text-error',
'text-error',
'accordian-body',
'input-prepend',
'input-append',
);
$regex = implode('\|', $oldstuff);
$regex = '"(' . $regex . ')"';
echo 'Run this command to find Bootstrap 2 markup that needs to be overriden';
echo 'For details of what to replace them with see http://getbootstrap.com/migration/';
echo "\n";
echo "git grep $regex -- './*' ':!*.less'";
echo "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment