File: custommakedeb

package info (click to toggle)
lazpaint 7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 56,000 kB
  • sloc: pascal: 277,538; python: 2,494; makefile: 233; sh: 221
file content (20 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download | duplicates (4)
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