From: Andrew Morton <andrewm@uow.edu.au>
To: lkml <linux-kernel@vger.kernel.org>
Subject: [patch] preserve symlinked .configs
Date: Thu, 17 May 2001 22:01:33 +1000 [thread overview]
Message-ID: <3B03BD9D.16662D1C@uow.edu.au> (raw)
When one has several machines it is nice to keep each
machine's .config under revision control. Then, on
each machine,
ln [-s] .config-$(hostname -s) .config
Problem is, `make menuconfig/oldconfig/config' goes and
removes your link, causing much irritation.
--- linux-2.4.4-ac9/scripts/Configure Sun Dec 31 13:16:13 2000
+++ ac/scripts/Configure Sun May 6 09:40:25 2001
@@ -566,9 +566,10 @@
rm -f .config.old
if [ -f .config ]; then
- mv .config .config.old
+ cp .config .config.old
fi
-mv .tmpconfig .config
+cp .tmpconfig .config
+rm .tmpconfig
mv .tmpconfig.h include/linux/autoconf.h
echo
--- linux-2.4.4-ac9/scripts/Menuconfig Tue May 15 14:11:09 2001
+++ ac/scripts/Menuconfig Wed May 9 11:33:30 2001
@@ -1290,12 +1290,12 @@
if [ -f "$DEF_CONFIG" ]
then
- rm -f ${DEF_CONFIG}.old
- mv $DEF_CONFIG ${DEF_CONFIG}.old
+ cp $DEF_CONFIG ${DEF_CONFIG}.old
fi
- mv $CONFIG $DEF_CONFIG
-
+ cp $CONFIG $DEF_CONFIG
+ rm $CONFIG
+
return 0
else
return 1
-
next reply other threads:[~2001-05-17 12:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-17 12:01 Andrew Morton [this message]
2001-05-17 12:44 ` [patch] preserve symlinked .configs Marko Kreen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B03BD9D.16662D1C@uow.edu.au \
--to=andrewm@uow.edu.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox