mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
This is the first change to the ramdisk since v0.1.0. So, we now build the image as initrd-X.Y.img, and link initrd.img to it. This lets us have a few checks to make sure that people rebuild their ramdisks when necessary.
16 lines
380 B
Python
16 lines
380 B
Python
#!/usr/bin/python
|
|
|
|
XM_TEST_VERSION = "@PACKAGE_VERSION@"
|
|
|
|
if __name__ == "__main__":
|
|
import re
|
|
|
|
match = re.match("^(\d+)\.(\d+)\.(\d+)$", XM_TEST_VERSION)
|
|
|
|
print "XM_TEST_VERSION=%s" % XM_TEST_VERSION
|
|
if match:
|
|
print "XM_TEST_MAJ=%s" % match.group(1)
|
|
print "XM_TEST_MIN=%s" % match.group(2)
|
|
print "XM_TEST_REV=%s" % match.group(3)
|
|
|