diff options
-rw-r--r-- | update.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/update.js b/update.js new file mode 100644 index 000000000000..86a2be977c6f --- /dev/null +++ b/update.js @@ -0,0 +1,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"); |