Updated version that omits .orig files: # 1. Clone upstream repos and create temporary trees hg clone http://xenbits.xensource.com/ext/xen-ia64-unstable.hg hg clone http://xenbits.xensource.com/xen-3.0.3-testing.hg hg clone http://free.linux.hp.com/~agriffis/pull-xen-unstable.hg hg clone http://hg.et.redhat.com/kernel/linux-2.6-xen-fedora cp -al xen-3.0.3-testing.hg xen-3.0.3-testing.hg+ia64 cp -al linux-2.6-xen-fedora linux-2.6-xen-fedora+ia64 # 2. Remember tip changesets ia64_cset=$(hg -R xen-ia64-unstable.hg parents | \ awk -F'[ :]' '/^changeset:/{print $(NF-1);exit}') testing_cset=$(hg -R xen-3.0.3-testing.hg parents | \ awk -F'[ :]' '/^changeset:/{print $(NF-1);exit}') # 3. Merge ia64 into testing cd xen-3.0.3-testing.hg+ia64 hg pull ../xen-ia64-unstable.hg hg merge find . -name \*.orig -print0 | xargs -0r rm hg ci -m "merge xen-ia64-unstable.hg" cd .. # 4. Generate hypervisor patch hg -R xen-3.0.3-testing.hg+ia64 di -r $testing_cset -r tip | \ filterdiff -p1 -i 'xen/*' --strip=1 > xen-ia64-$ia64_cset.patch # 5. Generate linux patch cd linux-2.6-xen-fedora+ia64 hg -R ../xen-3.0.3-testing.hg+ia64 di -r $testing_cset -r tip | \ ../pull-xen-unstable.hg/pull-xen-unstable --filter | \ patch -p1 find . -name \*.orig -print0 | xargs -0r rm hg add hg remove --after hg ci -m "update to xen-ia64-unstable-$ia64_cset" hg export tip > ../linux-2.6-xen-ia64-$ia64_cset.patch
Attachment:
pgpBgHjXnsphL.pgp
Description: PGP signature
-- Fedora-xen mailing list Fedora-xen@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-xen