[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-ia64-devel] Sparse tree merge-up script



Here's a follow-on patch which fetches OLDTAG and NEWTAG
automatically, if they aren't specified on the cmdline.  This replaces
the hardcoded v2.6.16 and v2.6.16.13 which were destined to be
useless.

--- sparse-merge.agriffis       2006-05-16 13:28:46.000000000 -0400
+++ sparse-merge        2006-05-16 13:35:44.000000000 -0400
@@ -6,9 +6,10 @@
 #          will lose data if there's anything there you care about.
 : ${LINUXPATH:=/tmp/linux-2.6}
 # Tag of current base upstream image for Xen files
-: ${OLDTAG:=v2.6.16}
+: ${OLDTAG:=v$(awk '/^LINUX_VER/{print $NF}' buildconfigs/mk.linux-2.6-xen)}
 # Tag of new upstream base to go to
-: ${NEWTAG:=v2.6.16.13}
+: ${NEWTAG:=v$(wget -O- -o/dev/null http://kernel.org/kdist/finger_banner \
+    | awk '/latest stable/{print $NF}')}
 
 SPARSEDIR=linux-2.6-xen-sparse
 

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.