* minibug: 'mv' -> 'mv -f ' in main Makefile
@ 2005-09-29 9:31 Etienne Lorrain
0 siblings, 0 replies; only message in thread
From: Etienne Lorrain @ 2005-09-29 9:31 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds
Hi,
I've got to answer this question on RedHat FC4 when building a kernel
in verbose mode:
$ make V=1 /boot/linux-2.6.14-rc2.kgz
.. lot of log ...
set -e; if [ ! -r .version ]; then rm -f .version; echo 1 >.version;
else mv .version .old_version; expr 0$(cat .old_version) + 1 >.version;
fi; make -f scripts/Makefile.build obj=init
mv: overwrite `.old_version', overriding mode 0644? y
I do not know why it is only when verbose is ON.
Either add the -f option to mv (or alternatively call /bin/mv)
in this part of patch-2.6.14-rc2 file b/Makefile :
@@ -624,8 +644,13 @@ quiet_cmd_vmlinux__ ?= LD $@
# Generate new vmlinux version
quiet_cmd_vmlinux_version = GEN .version
cmd_vmlinux_version = set -e; \
- . $(srctree)/scripts/mkversion > .tmp_version; \
- mv -f .tmp_version .version; \
+ if [ ! -r .version ]; then \
+ rm -f .version; \
+ echo 1 >.version; \
+ else \
+ mv .version .old_version; \
+ expr 0$$(cat .old_version) + 1 >.version; \
+ fi; \
$(MAKE) $(build)=init
# Generate System.map
Etienne.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-29 9:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 9:31 minibug: 'mv' -> 'mv -f ' in main Makefile Etienne Lorrain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®