summarylogtreecommitdiffstats
path: root/update.js
blob: 86a2be977c6ff8bf0d9caff2fb3baf065c8f4e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const fs = require("fs");
fs.writeFileSync(
    "PKGBUILD",
    fs
        .readFileSync("PKGBUILD")
        .toString()
        .replace(
            /pkgver=.+/g,
            "pkgver=" + process.argv[process.argv.length - 1]
        )
);

require("child_process").execSync("makepkg --printsrcinfo > .SRCINFO");
require("child_process").execSync("updpkgsums");