doublecmd/components/build.sh
2014-10-26 17:36:26 +00:00

34 lines
773 B
Bash
Executable file

#!/bin/sh
set -e
# Compiling components
# This script run from main build.sh script
# If you run it direct, set up $lazbuild first
# Generate PIC code
if [ -f /etc/fpc.cfg ] ; then
cp /etc/fpc.cfg ./
echo "-fPIC" >> fpc.cfg
export PPC_CONFIG_PATH=$(pwd)
fi
# Build components
basedir=$(pwd)
cd components
$lazbuild chsdet/chsdet.lpk $DC_ARCH
$lazbuild CmdLine/cmdbox.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 ZVDateTimeCtrls/zvdatetimectrls.lpk $DC_ARCH
cd $basedir
# Remove temporary file
if [ -f fpc.cfg ] ; then
rm -f fpc.cfg
export PPC_CONFIG_PATH=
fi