#!/bin/sh
echo Perl2Exe Binary Distribution Setup
if [ `uname` = Linux ] ; then
  if `p2x-Linux6.lib -e 0 >/dev/null 2>&1`; then
    echo This is Linux with libc 6
  else
    echo This is linux with libc 5
    ln -f p2x-Linux5.lib p2x-Linux.lib
    ln -f perl2exe-Linux5 perl2exe
    ln -f p2x-Linux5.lib perl5/bin/perl
  fi
fi

# configure perl5
if [ -d perl5 ] ; then
  cd perl5
  ./bin/perl setup_perl.pl `pwd` yes
  cd ..
  echo
  echo Please add the following to your PATH:
  echo `pwd`
  echo `pwd`/perl5/bin
  echo
else
  echo
  echo Please add the following to your PATH:
  echo `pwd`
  echo
fi

