Patch title: Release 87 bulk changes
Abstract:
File: /pliant/install/make-linux-i386-gcc
Key:
    Removed line
    Added line
#!/bin/sh

linkage="$1"

if [ "$1" = "root" ]; then
  pliant="$2"
  linkage="$3"
elif [ -d $HOME/pliant/ ]; then
  pliant=$HOME/pliant/
elif [ -d /pliant/ ]; then
  pliant=/pliant/
elif [ -d /usr/share/pliant/ ]; then
  pliant=/usr/share/pliant/
elif [ -d /usr/local/pliant/ ]; then
  pliant=/usr/local/pliant/
else
  echo Could not find Pliant directory.
  exit 1
fi

binary_path="${pliant}binary/"
compiler="gcc"
compiler="gcc-2.95"
include_options=""
compiler_options="-O2 -m486 -mregparm=3 -mrtd -D_REGISTERS_"
debug0_options="-D_NOCHECK_ -fomit-frame-pointer -D_LISTING_"
debug1_options="-D_NOCHECK_ -D_LISTING_"
debug2_options="-D_CHECK_"
link_options="-s -nostdlib"
static_exe_options="-D_STATIC_ ${pliant}pliant/language/startup/start.s"
exe_options="-ldl -D_SO2_ ${pliant}pliant/language/startup/start.s"
dll_options="-ldl -D_SO2_ -shared -D_DLL_"
context_options="-D_i386_ -D_LINUX_API_ -D_LINUX_ -D_GCC_"
extra_options=""

if [ "$linkage" = "static" ]; then
  exe_options=$static_exe_options
fi

if [ ! -d ${binary_path} ]; then
  mkdir -p $binary_path
fi
rm ${binary_path}/* 2>/dev/null

echo "compiling forever utility"
$compiler $compiler_options $include_options $debug0_options $link_options $static_exe_options $context_options $extra_options -o ${binary_path}forever.exe ${pliant}pliant/linux/misc/forever.c

if [ "$linkage" = "dll" ]; then

  echo "compiling Pliant loaders"
  $compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=0 $link_options $exe_options $context_options $extra_options -o ${binary_path}pliant-debug0.exe ${pliant}pliant/language/startup/loader.c
  $compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=1 $link_options $exe_options $context_options $extra_options -o ${binary_path}pliant-debug1.exe ${pliant}pliant/language/startup/loader.c
  $compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=2 $link_options $exe_options $context_options $extra_options -o ${binary_path}pliant-debug2.exe ${pliant}pliant/language/startup/loader.c
  
  echo "compiling Pliant DLL (debugging level 0)"
  $compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=0 $context_options $extra_options $link_options $dll_options -o ${binary_path}pliant-debug0.so ${pliant}pliant/install/pliant.c
  echo "compiling Pliant DLL (debugging level 1)"
  $compiler $include_options $compiler_options $debug1_options -Dc_debugging_level=1 $context_options $extra_options $link_options $dll_options -o ${binary_path}pliant-debug1.so ${pliant}pliant/install/pliant.c
  echo "compiling Pliant DLL (debugging level 2)"
  $compiler $include_options $compiler_options $debug2_options -Dc_debugging_level=2 $context_options $extra_options $link_options $dll_options -o ${binary_path}pliant-debug2.so ${pliant}pliant/install/pliant.c

else

  echo "compiling Pliant executable (debugging level 0)"
  $compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=0 $context_options $extra_options $link_options $exe_options -o ${binary_path}pliant-debug0.exe ${pliant}pliant/install/pliant.c
  echo "compiling Pliant executable (debugging level 1)"
  $compiler $include_options $compiler_options $debug1_options -Dc_debugging_level=1 $context_options $extra_options $link_options $exe_options -o ${binary_path}pliant-debug1.exe ${pliant}pliant/install/pliant.c
  echo "compiling Pliant executable (debugging level 2)"
  $compiler $include_options $compiler_options $debug2_options -Dc_debugging_level=2 $context_options $extra_options $link_options $exe_options -o ${binary_path}pliant-debug2.exe ${pliant}pliant/install/pliant.c

fi

chmod 755 ${binary_path}*.exe