delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/08/28/10:05:00

Date: Fri, 28 Aug 1992 15:49:06 +0200
P1-Message-Id: DE*DBP*RUHR-UNI-BOCHUM; 920828154710517-MTARUBA
Ua-Content-Id: 920828154710517-
From: Torsten DOT Porwol AT RUBA DOT RZ DOT RUHR-UNI-BOCHUM DOT DE
Subject: gcc environment variables
Importance: high
To: djgpp AT sun DOT soe DOT clarkson DOT edu

TO WHOM IT MAY CONCERN !

SOME PEOPLE ON THE LIST OBVIOUSLY GOT DIFFICULTIES TO
WRITE BATCH FILES.

Enclosed you find a shell archive including three small
batch files. In order to use DJGPP nobody forces you
to change the autoexec.bat all the time if you want to
run other programs.
Place the three files somewhere into the path and modify them
for your specific system (Change the drive letter, directory etc.).

- If you want to work with DJGPP just type in GOGNU and the whole
  environment is set correctly.
- Running another applications just recommends to type in GNUOFF.
- However if you should work with DEMACS like I do, use the batch
  file EMACS.

Hopefully the enclosed batch files will stop the strange discussion.

Torsten Porwol

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
# fsf.bat
# This archive created: Fri Aug 28 08:43:31 1992
export PATH; PATH=/bin:$PATH
if test ! -d 'fsf.bat'
then
 mkdir 'fsf.bat'
fi
cd 'fsf.bat'
if test -f 'emacs.bat'
then
 echo shar: will not over-write existing file "'emacs.bat'"
else
cat << \SHAR_EOF > 'emacs.bat'
@echo off
SET TMP=C:/TMP
SET TERM=ibmpc
SET TERMCAP=/lib/emacs/TERMCAP
SET HOME=C:/lib/emacs
SET EMACSLOADPATH=c:/lib/emacs;c:/lib/emacs/lisp
set EMACSEXECPATH=c:/lib/emacs
set SHELL=c:\command.com
set USER=PORWOL
set GROUP=PORWOL
\lib\emacs\demacs %1 %2 %3 %4
SET TERM=
SET TERMCAP=
SET HOME=
SET EMACSLOADPATH=
set EMACSEXECPATH=
set SHELL=
set USER=
set GROUP=
@echo on
SHAR_EOF
chmod +x 'emacs.bat'
fi # end of overwriting check
if test -f 'gnuoff.bat'
then
 echo shar: will not over-write existing file "'gnuoff.bat'"
else
cat << \SHAR_EOF > 'gnuoff.bat'
echo off
SET PATH=%OLDPATH%
SET OLDPATH=
set COMPILER_PATH=
set C_INCLUDE_PATH=
set CPLUS_INCLUDE_PATH=
set OBJC_INCLUDE_PATH=
set OBJCPLUS_INCLUDE_PATH=
set LIBRARY_PATH=
set TEMP=
set GO32TMP=
set GO32=
set BISON_SIMPLE=
set BISON_HAIRY=
set FLEX_SKELETON=
set TMPDIR=
ECHO ON
SHAR_EOF
chmod +x 'gnuoff.bat'
fi # end of overwriting check
if test -f 'gognu.bat'
then
 echo shar: will not over-write existing file "'gognu.bat'"
else
cat << \SHAR_EOF > 'gognu.bat'
ECHO OFF
SET OLDPATH=%PATH%
set COMPILER_PATH=/gpp/bin
set C_INCLUDE_PATH=/gpp/include
set CPLUS_INCLUDE_PATH=C:/gpp/cplusinc;C:/gpp/include
set OBJC_INCLUDE_PATH=/gpp/include
set OBJCPLUS_INCLUDE_PATH=/gpp/include
set LIBRARY_PATH=/gpp/lib
set TEMP=c:/tmp
set GO32TMP=c:/tmp
set GO32=ansi driver c:/gpp/drivers/oak.grd gw 1024 gh 768
set BISON_SIMPLE=c:/gpp/lib/bison.simple
set BISON_HAIRY=c:/gpp/lib/bison.hairy
set FLEX_SKELETON=c:/gpp/lib/flex.skeleton
set TMPDIR=c:/tmp
SET PATH=C:\BAT;C:\DOS;C:\GPP\BIN;C:\UTIL;C:\UNIX;C:\GPP\DOCS;
echo on
SHAR_EOF
chmod +x 'gognu.bat'
fi # end of overwriting check
cd ..
# End of shell archive
exit 0

- Raw text -


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