Author: hailfinger
Date: 2009-05-04 14:29:59 +0200 (Mon, 04 May 2009)
New Revision: 457

Modified:
   trunk/Makefile
Log:
Onwards with development. Re-add the svn revision to the version string.

Signed-off-by: Carl-Daniel Hailfinger <[email protected]>
Acked-by: Carl-Daniel Hailfinger <[email protected]>


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile      2009-05-04 12:23:25 UTC (rev 456)
+++ trunk/Makefile      2009-05-04 12:29:59 UTC (rev 457)
@@ -38,8 +38,10 @@
 
 all: pciutils dep $(PROGRAM)
 
-# Set the flashrom version string
-SVNDEF := -D'FLASHROM_VERSION="0.9.0"'
+# Set the flashrom version string from the highest revision number
+# of the checked out flashrom files.
+SVNDEF := -D'FLASHROM_VERSION="0.9.0-r$(shell svnversion -cn . \
+          | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
 
 $(PROGRAM): $(OBJS)
        $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)


-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to