Skip to contentSkip to conversation

compat-wireless: Naturally sort patch prefixes

PATCH In review Ozan Çağlayan 2 participants 2 messages Jun 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat-wireless: Naturally sort patch prefixes

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

---
 scripts/admin-update.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/admin-update.sh +1 -1
index ec87f98..01c254f 100755
@@ -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=$?
Signature · 1 line
1.7.10.2
#1 lore raw
Quoted 11 lines · Ozan Çağlayan

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:

Quoted 8 lines

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

Groovy, thanks applied and pushed!

Luis