Skip to content

Instantly share code, notes, and snippets.

@TinoDidriksen
Created March 24, 2021 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TinoDidriksen/bc44df6cddf551454d58adc14b416192 to your computer and use it in GitHub Desktop.
Save TinoDidriksen/bc44df6cddf551454d58adc14b416192 to your computer and use it in GitHub Desktop.
#!/bin/bash
P=$PATH
# Unset all envvars
for e in $(env | awk -F"=" '{print $1}') ; do
unset $e ; done
export PATH=$P
export TMPDIR=/tmp
export LC_ALL=en_US.UTF-8
echo "Only these envvars are set:"
env
echo ""
rm -rf /tmp/test-crk
mkdir -v /tmp/test-crk
pushd /tmp/test-crk
svn co https://github.com/giellalt/giella-core/trunk giella-core
svn co https://github.com/giellalt/giella-shared/trunk giella-shared
svn co https://github.com/giellalt/lang-crk/trunk lang-crk
pushd giella-core
autoreconf -fvi
./configure
make
popd
pushd giella-shared
autoreconf -fvi
./configure
make
popd
export GIELLA_CORE=/tmp/test-crk/giella-core
export GIELLA_SHARED=/tmp/test-crk/giella-shared
pushd lang-crk
autoreconf -fvi
./configure --without-forrest --with-hfst --enable-tokenisers --without-xfst --enable-reversed-intersect --enable-spellers --enable-hfst-mobile-speller --enable-alignment --disable-minimised-spellers --enable-syntax --enable-analysers --enable-generators --enable-apertium --enable-grammarchecker --with-backend-format=foma --enable-dicts --enable-oahpa
make -j4 V=1 VERBOSE=1 2>&1 | tee build.log
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment