1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/env bash
if [ "$1" == "" ]; then
echo "Creates the Debian package with a custom Lazarus or FPC installation"
echo ""
echo "Usage: ./makedeb LAZARUS_SOURCE_DIRECTORY [FPC_BINARY]"
echo ""
echo "LAZARUS_SOURCE_DIRECTORY: specifies the base path of Lazarus source."
echo "FPC_BINARY (optional): specifies the command to use for FPC."
exit 0
fi
echo $1 >debian/CONFIGURE_DEFAULT_LAZDIR
if [ "$2" == "" ]; then
rm debian/CONFIGURE_DEFAULT_FPCBIN
else
echo $2 >debian/CONFIGURE_DEFAULT_FPCBIN
fi
debuild -us -uc -d
rm debian/CONFIGURE_DEFAULT_LAZDIR
rm -f debian/CONFIGURE_DEFAULT_FPCBIN
|