compat-wireless: Naturally sort patch prefixes
authorOzan Çağlayan <ozancag@gmail.com>
Fri, 22 Jun 2012 13:30:54 +0000 (16:30 +0300)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Fri, 22 Jun 2012 16:59:25 +0000 (09:59 -0700)
Use ls -v to get a naturally sorted list of patches like:

patches/00-vga_switcheroo_client_ops.patch
patches/01-dma_buf_ops-addition.patch
patches/02-revert-vm_mmap.patch
patches/98-pr_fmt.patch
patches/99-change-makefile.patch
patches/9999-FIXME-dont-build-i915-for-i2c-problems.patch

instead of:

patches/00-vga_switcheroo_client_ops.patch
patches/01-dma_buf_ops-addition.patch
patches/02-revert-vm_mmap.patch
patches/98-pr_fmt.patch
patches/9999-FIXME-dont-build-i915-for-i2c-problems.patch
patches/99-change-makefile.patch

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
scripts/admin-update.sh

index ec87f98d1658e9dfa866553ecd93f25368a93956..01c254fcc043ce4289446f8787d27ac3c801a2c6 100755 (executable)
@@ -581,7 +581,7 @@ for dir in $EXTRA_PATCHES; do
        if [ $FOUND -eq 0 ]; then
                continue
        fi
-       for i in $dir/*.patch; do
+       for i in $(ls -v $dir/*.patch); do
                echo -e "${GREEN}Applying backport patch${NORMAL}: ${BLUE}$i${NORMAL}"
                patch -p1 -N -t < $i
                RET=$?