lkml.org 
[lkml]   [2001]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] preserve symlinked .configs
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

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:53    [W:0.035 / U:1.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site