~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/compiler/mppcsparc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
cd "`dirname "$0"`/.."
 
3
FPC_SRC_DIR="$PWD"
 
4
COMP_DIR="$FPC_SRC_DIR/compiler"
 
5
RTL_DIR="$FPC_SRC_DIR/rtl"
 
6
SPARC_BINUTILS_DIR="/usr/local/bin/sparc-linux"
 
7
INCLUDE_PATH=`echo -Fi"$RTL_DIR/"{unix,linux,sparc,inc,linux/sparc,objpas/sysutils}`
 
8
UNITS_PATH=`echo -Fu"$RTL_DIR/"{unix,linux,sparc,inc,linux/sparc,objpas,inc}`
 
9
SRC_DIR=`echo "$COMP_DIR/"{,sparc,systems}:`
 
10
TEST_DIR="$FPC_SRC_DIR/tests/test"
 
11
if [[ "$1" == "-V1.0" ]] || [[ "$#" == 0 ]]
 
12
then
 
13
  if [[ "$1" == "-V1.1" ]]
 
14
  then
 
15
    cd "$COMP_DIR"
 
16
    ~/FPC/bin/fpc -XD -gl -oppcsparc -dExtDebug -Fu"sparc;systems" -FE"sparc" -dSPARC -dGDB -dNewRA pp.pas
 
17
  else
 
18
    cd "$COMP_DIR"
 
19
    fpc -XD -gl -oppcsparc -dExtDebug -Fu"sparc;systems" -FE"sparc" -dSPARC -dGDB -dNewRA pp.pas
 
20
  fi
 
21
fi
 
22
if [[ "$#" -gt "0" ]] && ( [[ "$1" != "-B" ]] || [[ "$#" -gt "1" ]] )
 
23
then
 
24
  cd "$TEST_DIR"
 
25
  COMPILE_COMMAND='"$COMP_DIR/sparc/ppcsparc" -g -artl $UNITS_PATH -FD"$SPARC_BINUTILS_DIR" $INCLUDE_PATH  "-FE$TEST_DIR" -dSPARC'
 
26
  if [[ "$1" == "-gdb" ]]
 
27
  then
 
28
    shift 1
 
29
    eval gdb -d \"$SRC_DIR\" --args $COMPILE_COMMAND "$@"
 
30
  else
 
31
    FILES_LIST=`ls $1`
 
32
    shift 1
 
33
    for FileName in $FILES_LIST
 
34
    do
 
35
      eval "$COMPILE_COMMAND" "$FileName" "$@"
 
36
      if [[ $? != 0 ]]
 
37
      then
 
38
        break;
 
39
      fi
 
40
    done
 
41
  fi
 
42
fi