#!/bin/bash
git checkout ofed_kernel
git checkout -b backport-$1
./ofed_scripts/configure --kernel-version=$1 --without-quilt
git add `git status | tr '\t' ':' | grep '^#:' | sed '/^#:/s/^#://1' | sed 's/^modified:   //1'`
git commit -m 'auto add backport branch'

