mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
57 lines
No EOL
1.9 KiB
Bash
Executable file
57 lines
No EOL
1.9 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# if you compile first time you must have "lazres" tools
|
|
# to create it execute "$lazpath/lazbuild $lazpath/tools/lazres.lpi"
|
|
# and change variable "lazpath" and "lcl"
|
|
# after it execute this script with parameter "all" at doublecmd dir
|
|
# "./_make.sh all" it create lrs file and build doublecmd
|
|
# and you can comment last line and uncomment next to last to use lazbuild
|
|
# by Attid
|
|
|
|
|
|
# You can execute this script with different parameters:
|
|
# components - compiling components needed for DC
|
|
# plugins - compiling all DC plugins
|
|
# doublecmd - compiling only DC without *.lrs files generation
|
|
# all - compiling components, plugins and DC with *.lrs files generation
|
|
# default - compiling DC with *.lrs files generation (using by default)
|
|
|
|
#path to lazarus
|
|
export lazpath=/home/alexx/bin/lazarus
|
|
#widgetset gtk or gtk2
|
|
lcl=gtk2
|
|
|
|
build_doublecmd()
|
|
{
|
|
$lazpath/lazbuild --widgetset=$lcl doublecmd.lpi
|
|
#fpc doublecmd.lpr -S2cdgi -OG3 -g -gl -vewnhi -l -Ficomponents/KASToolBar/ -Ficomponents/KASToolBar/lib/i386-linux/ -Ficomponents/viewer/ -Fu$lazpath/components/jpeg/lib/i386-linux/ -Fucomponents/KASToolBar/lib/i386-linux/ -Fu$lazpath/components/synedit/units/i386-linux/ -Fu$lazpath/lcl/units/i386-linux/ -Fu$lazpath/lcl/units/i386-linux/$lcl/ -Fucomponents/viewer/lib/i386-linux/ -Fu$lazpath/packager/units/i386-linux/ -Fu. -odoublecmd -dLCL -dLCL$lcl
|
|
}
|
|
|
|
build_default()
|
|
{
|
|
for LFM in `ls ./*.lfm`
|
|
do
|
|
LRS=`echo $LFM | sed -e 's/\.lfm$/\.lrs/'`
|
|
$lazpath/tools/lazres $LRS $LFM
|
|
done
|
|
build_doublecmd
|
|
}
|
|
|
|
build_all()
|
|
{
|
|
components/build.sh
|
|
plugins/build.sh
|
|
build_default
|
|
build_doublecmd
|
|
}
|
|
|
|
rm interface.inc
|
|
echo "{\$DEFINE $lcl}">interface.inc
|
|
|
|
case $1 in
|
|
components) components/build.sh;;
|
|
plugins) plugins/build.sh;;
|
|
doublecmd) build_doublecmd;;
|
|
all) build_all;;
|
|
*) build_default;;
|
|
esac |