-
Notifications
You must be signed in to change notification settings - Fork 0
/
generateTXT.js
23 lines (22 loc) · 915 Bytes
/
generateTXT.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"use strict";
const fs = require("fs");
const shell = require("shelljs");
shell.cd("results/runtime/modules");
fs.mkdir("edition", (err) => {
if (err) {
if (err.code == "EEXIST") {
return;
}
console.log(err);
return false;
}else{
console.log("Success.")
}
});
fs.copyFileSync(__dirname + "/results/runtime/comment.txt", __dirname + "/results/runtime/modules/edition/comment.txt");
shell.exec("awk 1 ../enclosure.txt windows.txt operagx.txt operagxYYC.txt > edition/main.txt");
shell.exec("awk 1 linux.txt linuxYYC.txt mac.txt macYYC.txt windowsYYC.txt > edition/desktop.txt");
shell.exec("awk 1 html5.txt > edition/web.txt");
shell.exec("awk 1 android.txt ios.txt tvos.txt > edition/mobile.txt");
shell.exec("awk 1 windowsuap.txt > edition/uwp.txt");
shell.exec("awk 1 ps4.txt ps5.txt switch.txt xboxone.txt xboxseriesxs.txt > edition/console.txt");