Merge branch 'chromecxtmenu' into master

This commit is contained in:
nightwing 2012-10-29 13:02:27 +04:00
commit e0a2e1c688
5 changed files with 526 additions and 527 deletions

View file

@ -42,6 +42,10 @@ function getVersion(path) {
return fs.readFileSync(path + "/.git-ref", "utf8");
if (fs.existsSync(path + "/.git/ORIG_HEAD"))
return fs.readFileSync(path + "/.git/ORIG_HEAD", "utf8");
if (fs.existsSync(path + "/.sourcemint/source.json")) {
var json = fs.readFileSync(path + "/.sourcemint/source.json", "utf8");
return JSON.parse(json).url.split("/").pop();
}
}
if (process.argv.indexOf("-c") > 0) try {