mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Now you can specify more than one mode when building and installing the RGL.
For example to build all modes, run
runhaskell Setup.hs build alltenses present minimal
The default is to build alltenses and present, which means that a single
command,
cabal install
is enough to obtain a normal installation of GF. Without this change, additional
build and install commands would be required before you can compile example
grammars, like Foods and Phrasebook.
The build-binary-dist.sh script has been simplified accordingly.
35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
#! /bin/bash
|
|
|
|
### This script builds a binary distribution of GF from the source package
|
|
### that this script is a part of. It also assumes that you have installed
|
|
### the Haskell Platform, version 2010.1.0.0 or 2010.2.0.0
|
|
|
|
destdir=/tmp/gf-build-binary-dist # assemble binary dist here
|
|
targz=gf-bin.tar.gz # the final tar file, should be renamed
|
|
langs="" # which languages?
|
|
#langs="langs=-Pol" # temporary problem with Polish, omit it
|
|
|
|
set -e # Stop if an error occurs
|
|
set -x # print commands before exuting them
|
|
|
|
cabal install # gf needs to be installed before building gf-server below
|
|
|
|
runhaskell Setup.hs configure --user --prefix /usr/local
|
|
runhaskell Setup.hs build $langs
|
|
runhaskell Setup.hs copy --destdir=$destdir $langs
|
|
|
|
(
|
|
cd src/server
|
|
|
|
## If you don't already have the packages gf-server depends on, this is
|
|
## the easiest way to install them:
|
|
#cabal install
|
|
|
|
runhaskell Setup.hs configure --user --prefix /usr/local
|
|
runhaskell Setup.hs build
|
|
runhaskell Setup.hs copy --destdir=$destdir
|
|
)
|
|
tar -C $destdir -zcf $targz .
|
|
echo "Created $targz, rename it to something more informative"
|
|
rm -r $destdir
|