dmg: added option chmhelp

git-svn-id: trunk@38049 -
This commit is contained in:
mattias 2012-07-26 20:55:44 +00:00
parent dd67f6d6a2
commit 701f55d5a2
2 changed files with 44 additions and 16 deletions

View File

@ -8,7 +8,7 @@
# gtk1 compile IDE and programs for gtk1.
# qt compile IDE and programs for qt.
# 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 files in docs/chm
set -e
@ -131,7 +131,7 @@ if [ "$UseCHMHelp" = "1" ]; then
echo
echo "Copying chm files"
cd $LazSrcDir/docs/chm
cp -v *.txt *.kwd *.chm *.xct $LazDestDir/docs/chm/
cp -v *.kwd *.chm $LazDestDir/docs/chm/
cd -
fi

View File

@ -3,13 +3,15 @@
# This script requires an installed 'Iceberg'
#
# Usage:
#
# Build a lazarus dmg:
# ./create_lazarus_dmg.sh
# ./create_lazarus_dmg.sh [chmhelp] [edit]
#
# This will setup a lazarus package in ~/tmp/buildlaz
# run 'freeze' of Iceberg and create the dmg.
#
# Options:
# chmhelp add package chmhelp and add chm,kwd files in docs/chm
# append-revision append svn revision to dmg
#
# To edit the Iceberg configuration 'lazarus.packproj', run
# ./create_lazarus_dmg.sh edit
# This will create ~/tmp/buildlaz/lazarus.packproj. Open the file with Iceberg.
@ -28,19 +30,37 @@ set -x
HDIUTIL=/usr/bin/hdiutil
LazVersionPostfix=
if [ "$1" = "append-revision" ]; then
LazVersionPostfix=$(../get_svn_revision_number.sh .)
if [ -n "$LazVersionPostfix" ]; then
LazVersionPostfix=.$LazVersionPostfix
fi
shift
fi
UseCHMHelp=
EditMode=
if [ "$1" = "edit" ]; then
EditMode=$1
while [ $# -gt 0 ]; do
echo "param=$1"
case "$1" in
chmhelp)
echo "using package chmhelp"
UseCHMHelp=1
;;
append-revision)
LazRevision=$(../get_svn_revision_number.sh .)
if [ -n "$LazRevision" ]; then
LazVersionPostfix=$LazVersionPostfix.$LazRevision
fi
echo "Appending svn revision $LazVersionPostfix to dmg name"
;;
edit)
EditMode=1
;;
*)
echo "invalid parameter $1"
echo "Usage: ./create_lazarus_dmg.sh [chmhelp] [append-revision] [edit]"
exit 1
;;
esac
shift
fi
done
PPCARCH=ppcppc
ARCH=$(uname -p)
@ -102,6 +122,14 @@ rm -rf $BUILDDIR
mkdir -p $ROOTDIR/Developer
$SVN export $LAZSOURCEDIR $LAZBUILDDIR
if [ "$UseCHMHelp" = "1" ]; then
echo
echo "Copying chm files"
cd $LAZSOURCEDIR/docs/chm
cp -v *.kwd *.chm $LAZBUILDDIR/docs/chm/
cd -
fi
#cp $LAZSOURCEDIR/lazarus $LAZBUILDDIR/
#cp -R $LAZSOURCEDIR/lazarus.app $LAZBUILDDIR/
#mkdir -p $LAZBUILDDIR/tools/install/