From: pavenis AT lanet DOT lv Message-ID: To: Robert Hoehne Date: Mon, 11 Oct 1999 16:07:18 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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