mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 21:35:57 +02:00
lazarus deb: added qt widgetset option
git-svn-id: trunk@38040 -
This commit is contained in:
parent
47bce9fd29
commit
072c2aeec0
@ -5,7 +5,8 @@
|
|||||||
# Usage: ./create_lazarus_deb.sh [gtk1] [append-revision] [chmhelp]
|
# Usage: ./create_lazarus_deb.sh [gtk1] [append-revision] [chmhelp]
|
||||||
#
|
#
|
||||||
# Options:
|
# Options:
|
||||||
# gtk1 compile IDE and programs for gtk1 too. gtk2 ppu are still built.
|
# gtk1 compile IDE and programs for gtk1.
|
||||||
|
# qt compile IDE and programs for qt.
|
||||||
# append-revision append the svn revision to the .deb version
|
# append-revision append the svn revision to the .deb version
|
||||||
# chmhelp add package chmhelp and add chm,kwd,xct,txt files in docs/chm
|
# chmhelp add package chmhelp and add chm,kwd,xct,txt files in docs/chm
|
||||||
|
|
||||||
@ -14,19 +15,35 @@ set -e
|
|||||||
LCLWidgetset=
|
LCLWidgetset=
|
||||||
LazVersionPostfix=
|
LazVersionPostfix=
|
||||||
UseCHMHelp=
|
UseCHMHelp=
|
||||||
|
LazRelease='0'
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
echo "param=$1"
|
echo "param=$1"
|
||||||
case "$1" in
|
case "$1" in
|
||||||
gtk1)
|
gtk1)
|
||||||
echo "Compile for gtk1 too"
|
echo "Compile for gtk1"
|
||||||
|
if [ -n "$LCLWidgetset" ]; then
|
||||||
|
echo "widgetset already set to $LCLWidgetset"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
LCLWidgetset=gtk
|
LCLWidgetset=gtk
|
||||||
|
LazVersionPostfix=${LazVersionPostfix}-gtk
|
||||||
|
;;
|
||||||
|
|
||||||
|
qt)
|
||||||
|
echo "Compile for qt"
|
||||||
|
if [ -n "$LCLWidgetset" ]; then
|
||||||
|
echo "widgetset already set to $LCLWidgetset"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
LCLWidgetset=qt
|
||||||
|
LazVersionPostfix=${LazVersionPostfix}-qt
|
||||||
;;
|
;;
|
||||||
|
|
||||||
append-revision)
|
append-revision)
|
||||||
LazVersionPostfix=$(./get_svn_revision_number.sh .)
|
LazRevision=$(./get_svn_revision_number.sh .)
|
||||||
if [ -n "$LazVersionPostfix" ]; then
|
if [ -n "$LazRevision" ]; then
|
||||||
LazVersionPostfix=.$LazVersionPostfix
|
LazVersionPostfix=$LazVersionPostfix.$LazRevision
|
||||||
fi
|
fi
|
||||||
echo "Appending svn revision $LazVersionPostfix to deb name"
|
echo "Appending svn revision $LazVersionPostfix to deb name"
|
||||||
;;
|
;;
|
||||||
@ -38,7 +55,7 @@ while [ $# -gt 0 ]; do
|
|||||||
|
|
||||||
*)
|
*)
|
||||||
echo "invalid parameter $1"
|
echo "invalid parameter $1"
|
||||||
echo "Usage: ./create_lazarus_deb.sh [gtk1] [release=svn] [chmhelp]"
|
echo "Usage: ./create_lazarus_deb.sh [chmhelp] [gtk1] [qt] [qtlib=<dir>] [release=svn] "
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -72,7 +89,6 @@ fi
|
|||||||
|
|
||||||
Date=`date +%Y%m%d`
|
Date=`date +%Y%m%d`
|
||||||
LazVersion=$(./get_lazarus_version.sh)$LazVersionPostfix
|
LazVersion=$(./get_lazarus_version.sh)$LazVersionPostfix
|
||||||
LazRelease='0'
|
|
||||||
SrcTGZ=lazarus-$LazVersion-$LazRelease.tar.gz
|
SrcTGZ=lazarus-$LazVersion-$LazRelease.tar.gz
|
||||||
CurDir=`pwd`
|
CurDir=`pwd`
|
||||||
TmpDir=~/tmp/lazarus$LazVersion
|
TmpDir=~/tmp/lazarus$LazVersion
|
||||||
@ -141,7 +157,7 @@ strip tools/lazres
|
|||||||
strip tools/updatepofiles
|
strip tools/updatepofiles
|
||||||
strip tools/lrstolfm
|
strip tools/lrstolfm
|
||||||
strip tools/svn2revisioninc
|
strip tools/svn2revisioninc
|
||||||
if [ "$UseCHMHelp" = "1" ]; then
|
if [ -f components/chmhelp/lhelp/lhelp ]; then
|
||||||
strip components/chmhelp/lhelp/lhelp
|
strip components/chmhelp/lhelp/lhelp
|
||||||
fi
|
fi
|
||||||
cd -
|
cd -
|
||||||
|
Loading…
Reference in New Issue
Block a user