1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Migrate clean and importl10n target to gulp

This commit is contained in:
Tim van der Meij 2016-03-04 21:14:56 +01:00
parent b8aaa24257
commit 96cca2b37a
3 changed files with 31 additions and 23 deletions

20
make.js
View file

@ -1512,11 +1512,7 @@ target.lint = function() {
// make clean
//
target.clean = function() {
cd(ROOT_DIR);
echo();
echo('### Cleaning up project builds');
rm('-rf', BUILD_DIR);
exit(exec('gulp clean'));
};
//
@ -1530,17 +1526,5 @@ target.makefile = function () {
//make importl10n
//
target.importl10n = function() {
var locales = require('./external/importL10n/locales.js');
var LOCAL_L10N_DIR = 'l10n';
cd(ROOT_DIR);
echo();
echo('### Importing translations from mozilla-aurora');
if (!test('-d', LOCAL_L10N_DIR)) {
mkdir(LOCAL_L10N_DIR);
}
cd(LOCAL_L10N_DIR);
locales.downloadL10n();
exit(exec('gulp importl10n'));
};