delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/10/11/09:47:45

From: pavenis AT lanet DOT lv
Message-ID: <B0000104726@stargate.astr.lu.lv>
To: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Date: Mon, 11 Oct 1999 16:07:18 +0300
MIME-Version: 1.0
Subject: djconfig.sh for gdb-4.18
CC: djgpp-workers AT delorie DOT com
X-mailer: Pegasus Mail for Win32 (v3.12a)
Reply-To: djgpp-workers AT delorie DOT com

Hi!

I can suggest different hack to avoid need to create /bin directory on 
current drive. Last tests were with bach-2.0.3 (I build gdb-4.18 and 
make install worked Ok) but I earlier tested the same hack it also with 
bash-1.14.7 (on binutils but libtool is also used there)

Andris

--- djconfig.sh~1	Sun Aug  1 21:25:20 1999
+++ djconfig.sh	Mon Oct 11 15:43:46 1999
@@ -46,19 +46,17 @@
 
 # Now set the config shell. It is really needed, that the shell
 # points to a shell with full path and also it must conatain the
-# .exe suffix. I assume here, that there is installed bash. If
-# not, install it. Additionally the pathname must not contain a
-# drive letter, so I create on the current drive the directory
-# /bin and place there sh.exe.
+# .exe suffix. I assume here, that there is installed bash. 
 # (BTW: This limitation comes now with the great !-((
 # libtool utility)
-if ! test -d /bin; then
-  mkdir /bin
-fi
-if ! test -f /bin/sh.exe; then
-  cp -p $DJDIR/bin/bash.exe /bin/sh.exe
-fi
-export CONFIG_SHELL=/bin/sh.exe
+CONFIG_SHELL=`echo 'echo $0' | bash.exe -`
+case ${CONFIG_SHELL} in *.exe) ;;
+	*) CONFIG_SHELL=${CONFIG_SHELL}.exe;
+	   test -f ${CONFIG_SHELL} || exit 1
+	   ;;
+esac;
+		
+export CONFIG_SHELL		
 
 # force to have the ltmain.sh script to be in DOS text format,
 # otherwise the resulting ltconfig script will have mixed

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019