From 46a5aef05b92a2162150326f426bebe3541d6e8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Fri, 22 Jun 2012 16:30:54 +0300 Subject: [PATCH] compat-wireless: Naturally sort patch prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Luis R. Rodriguez --- scripts/admin-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index ec87f98d1658..01c254fcc043 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -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=$? -- 2.30.2