[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070131093542.GA3471@flower.upol.cz>
Date: Wed, 31 Jan 2007 09:35:42 +0000
From: Oleg Verych <olecom@...wer.upol.cz>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Roman Zippel <zippel@...ux-m68k.org>,
Bastian Blank <bastian@...di.eu.org>,
Sam Ravnborg <sam@...nborg.org>, Andrew Morton <akpm@...l.org>
Subject: [patch] update for (kbuild: correctly skip tilded backups in localversion files)
kbuild: finally correctly skip tilded backups in localversion files
Signed-off-by: Oleg Verych <olecom@...wer.upol.cz>
---
Final addition. Why i want to maximize usage of shell, rather, than
`make'? Just because i think, it's more portable, clear way.
Thanks.
--- linux-2.6.20-rc6/Makefile~4tilde-backups~ 2007-01-31 07:46:18.696404500 +0100
+++ linux-2.6.20-rc6/Makefile 2007-01-31 10:19:18.406100500 +0100
@@ -788,10 +788,10 @@ $(vmlinux-dirs): prepare scripts
# scripts/setlocalversion and add the appropriate checks as needed.
-localversion = $(objtree)/localversion $(srctree)/localversion
-ext_versions = $(objtree)/localversion[^~]* $(srctree)/localversion[!~]*
-versions = $(localversion) $(ext_versions)
-localver = $(subst $(space),, \
- $(shell cat /dev/null $(sort $(wildcard $(versions)))) \
- $(patsubst "%",%,$(CONFIG_LOCALVERSION)))
+pattern = ".*/localversion[^~]*"
+string = $(shell cat /dev/null \
+ `find $(objtree) $(srctree) -maxdepth 1 -regex $(pattern) | sort`)
+
+localver = $(subst $(space),, $(string) \
+ $(patsubst "%",%,$(CONFIG_LOCALVERSION)))
# If CONFIG_LOCALVERSION_AUTO is set scripts/setlocalversion is called
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists