mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-11 14:10:42 +00:00
292a6ce622
* chore: Split Xone into stable and nightly packages
* fix: Oops forgot to update a macro on that line
* fix: More stuff
* Update xone-nightly-kmod.spec
---------
(cherry picked from commit 0e58d19bb0)
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
14 lines
639 B
Plaintext
14 lines
639 B
Plaintext
let c = sh("cat anda/system/xone/nightly/kmod-common/xone-nightly.spec | grep '%global commit ' | sed -E 's/.+commit //'", #{"stdout": "piped"}).ctx.stdout;
|
|
c.pop();
|
|
rpm.global("commit", c);
|
|
if rpm.changed() {
|
|
rpm.release();
|
|
let d = sh("cat anda/system/xone/nightly/kmod-common/xone-nightly.spec | grep '%global commitdate' | sed -E 's/.+commitdate //'", #{"stdout": "piped"}).ctx.stdout;
|
|
d.pop();
|
|
rpm.global("commitdate", d);
|
|
let v = sh("cat anda/system/xone/nightly/kmod-common/xone-nightly.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
|
|
v.pop();
|
|
rpm.global("ver", v);
|
|
}
|
|
|