author | Florian Pose <fp@igh-essen.com> |
Tue, 28 Oct 2014 13:31:05 +0100 | |
branch | stable-1.5 |
changeset 2584 | 0e3d989ff233 |
child 2585 | 26480934a057 |
permissions | -rwxr-xr-x |
#!/bin/bash set -x KERNELDIR=/data/kernel/linux-3.8.13 PREVER=3.6 KERNELVER=3.8 for f in $KERNELDIR/drivers/net/ethernet/intel/e1000/*.[ch]; do echo $f b=$(basename $f) o=${b/\./-$KERNELVER-orig.} e=${b/\./-$KERNELVER-ethercat.} cp -v $f $o chmod 644 $o cp -v $o $e op=${b/\./-$PREVER-orig.} ep=${b/\./-$PREVER-ethercat.} diff -u $op $ep | patch -p1 $e sed -i s/$PREVER-ethercat.h/$KERNELVER-ethercat.h/ $e hg add $o $e done