File: build.sh

package info (click to toggle)
doublecmd 0.9.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 40,264 kB
  • sloc: pascal: 324,944; ansic: 5,998; sh: 771; makefile: 196; python: 119; xml: 8; javascript: 4
file content (42 lines) | stat: -rwxr-xr-x 960 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh

set -e

# Compiling components

# Do not execute this script directly.
# This script is called from ../build.sh.

# Get processor architecture
if [ -z $CPU_TARGET ] ; then
  export CPU_TARGET=$(fpc -iTP)
fi

# Generate PIC code
if [ "$CPU_TARGET" != "arm" ] ; then
  if [ -f /etc/fpc.cfg ] ; then
    cp /etc/fpc.cfg ./
    echo "-fPIC" >> fpc.cfg
    export PPC_CONFIG_PATH=$(pwd)
  fi
fi

# Build components
basedir=$(pwd)
cd components
$lazbuild chsdet/chsdet.lpk $DC_ARCH
$lazbuild CmdLine/cmdbox.lpk $DC_ARCH
$lazbuild multithreadprocs/multithreadprocslaz.lpk $DC_ARCH
$lazbuild dcpcrypt/dcpcrypt.lpk $DC_ARCH
$lazbuild doublecmd/doublecmd_common.lpk $DC_ARCH
$lazbuild KASToolBar/kascomp.lpk $DC_ARCH
$lazbuild viewer/viewerpackage.lpk $DC_ARCH
$lazbuild gifanim/pkg_gifanim.lpk $DC_ARCH
$lazbuild synunihighlighter/synuni.lpk $DC_ARCH
cd $basedir

# Remove temporary file
if [ -f fpc.cfg ] ; then
  rm -f fpc.cfg
  export PPC_CONFIG_PATH=
fi