db backup prior to drupal security update
[yaffs-website] / web / core / scripts / js / rename-js-files-to-es6.sh
1 #!/bin/bash
2
3 # Rename *.js files in *.es6.js. Only need to be run once.
4 # Should be removed after *.es6.js files are committed to core.
5 #
6 # @internal This file is part of the core javascript build process and is only
7 # meant to be used in that context.
8
9 for js in `find ./{misc,modules,themes} -name '*.js'`;
10 do
11    mv ${js} ${js%???}.es6.js;
12 done