Files
packages/anda/system/xone/dkms/update.rhai
T
Gilver 73a2f3dbc1 fix(xpadneo, xone, xpad-noone): Actually fix update scripts (#3845) (#3863)
* Remove weirdness



* Add space



* Add space



* Remove extra macros



* Somehow this wasn't updated



* Update update.rhai



* Update update.rhai



* Update update.rhai



* Update update.rhai



* Update update.rhai



* Update dkms-xpad-noone.spec



* Update xpad-noone-kmod.spec



* Update dkms-xpadneo.spec



* Update xpadneo-kmod.spec



---------


(cherry picked from commit 46eb0c0bd5)

Signed-off-by: Gilver <rockgrub@disroot.org>
Signed-off-by: RockGrub <RockGrub@users.noreply.github.com>
2025-03-11 23:41:00 +08:00

14 lines
591 B
Plaintext

let c = sh("cat anda/system/xone/kmod-common/xone.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/kmod-common/xone.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/kmod-common/xone.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
v.pop();
rpm.global("ver", v);
}