summaryrefslogtreecommitdiff
blob: beb07fbdaeb969964a9597c77ecde1184d193a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- drbd-8.0.0/scripts/adjust_drbd_config_h.sh.orig	2007-02-05 01:20:58.000000000 +0100
+++ drbd-8.0.0/scripts/adjust_drbd_config_h.sh	2007-02-05 01:21:28.000000000 +0100
@@ -26,19 +26,7 @@
 pushd $KDIR
 
 KDIR=${KDIR%/}
-if test -z "$O"; then
-	## just in case...
-	## detect if $KDIR points to something which is actually $O ...
-	X=$( make help | sed -ne '/ -C .* O=.* help$/p' | tr -s ' ' )
-	if [[ -n $X ]]; then
-		KDIR=${X##* -C }; KDIR=${KDIR%% *}; KDIR=$(cd $KDIR && pwd)
-		O=${X##* O=}; O=${O%% *}; O=$(cd $KDIR && cd $O && pwd)
-	else
-		O=$KDIR;
-	fi
-else
-	O=${O%/}
-fi
+O=$KDIR;
 
 # some paranoia: check that all files are where we expect them
 ls > /dev/null \