diff options
| author | Thomas Hallgren <th-github@altocumulus.org> | 2018-11-28 17:27:29 +0100 |
|---|---|---|
| committer | Thomas Hallgren <th-github@altocumulus.org> | 2018-11-28 17:27:29 +0100 |
| commit | 32ce03dc944b135128ffb41e136df9fea94466ce (patch) | |
| tree | 097c783b204e6cef397f75ff883973ca295bdd2d /bin | |
| parent | 8560b4fb657e64c170ac403c2eb5a731d7ff6b58 (diff) | |
bin/build-binary-dist.sh: include the RGL in binary distributions
TODO: the corresponding changes in debian/rules
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/build-binary-dist.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/build-binary-dist.sh b/bin/build-binary-dist.sh index e44aaef0c..ebc72a5e1 100755 --- a/bin/build-binary-dist.sh +++ b/bin/build-binary-dist.sh @@ -67,10 +67,27 @@ fi cabal install --only-dependencies -fserver -fc-runtime $extra cabal configure --prefix="$prefix" -fserver -fc-runtime $extra DYLD_LIBRARY_PATH="$extralib" LD_LIBRARY_PATH="$extralib" cabal build + # Building the example grammars will fail, because the RGL is missing +cabal copy --destdir="$destdir" # create www directory + +## Build the RGL and copy it to $destdir +PATH=$PWD/dist/build/gf:$PATH +export GF_LIB_PATH="$(dirname $(find "$destdir" -name www))/lib" # hmm +mkdir -p "$GF_LIB_PATH" +pushd ../gf-rgl +make build +make copy +popd + +# Build GF again, including example grammars that need the RGL +DYLD_LIBRARY_PATH="$extralib" LD_LIBRARY_PATH="$extralib" cabal build + +## Copy GF to $destdir cabal copy --destdir="$destdir" libdir=$(dirname $(find "$destdir" -name PGF.hi)) cabal register --gen-pkg-config=$libdir/gf-$ver.conf +## Create the binary distribution package case $fmt in tar.gz) targz="$name-bin-$hw-$os.tar.gz" # the final tar file |
