Updating shelljs to 0.2.6. Copy now preserves mode bits.

This commit is contained in:
Braden Shepherdson
2013-10-23 15:22:36 -04:00
parent 28c41294bb
commit 001570e941
35 changed files with 2105 additions and 1888 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env node
require('../global');
echo('Appending docs to README.md');
cd(__dirname + '/..');
// Extract docs from shell.js
var docs = grep('//@', 'shell.js');
docs = docs.replace(/\/\/\@include (.+)/g, function(match, path) {
var file = path.match('.js$') ? path : path+'.js';
return grep('//@', file);
});
// Remove '//@'
docs = docs.replace(/\/\/\@ ?/g, '');
// Append docs to README
sed('-i', /## Command reference(.|\n)*/, '## Command reference\n\n' + docs, 'README.md');
echo('All done.');