Skip to content

Commit

Permalink
add build script for PB evalution
Browse files Browse the repository at this point in the history
  • Loading branch information
msakai committed Jun 30, 2015
1 parent 143d023 commit 24b3b9e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build_bdist_pb_evaluation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
export CABALVER=1.18
export GHCVER=7.8.4

sudo add-apt-repository -y ppa:hvr/ghc
sudo apt-get update

sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:~/.cabal/bin:$PATH

sudo apt-get install happy-1.19.4 alex-3.1.3
export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH

cabal sandbox init
cabal update
cabal install --only-dependencies
#cabal configure --disable-shared --ghc-options="-static -optl-static -optl-pthread"
cabal configure -fLinuxStatic
cabal build

PKG=toysat-pb`date +%Y`-`date +%Y%m%d`-`git rev-parse --short HEAD`
rm -r $PKG
mkdir $PKG
cp dist/build/toysat/toysat $PKG/
cp misc/pb/README.md $PKG/
tar Jcf $PKG.tar.xz $PKG --owner=sakai --group=sakai
1 change: 1 addition & 0 deletions toysolver.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Extra-Source-Files:
build_bdist_win32.sh
build_bdist_win64.sh
build_bdist_maxsat_evaluation.sh
build_bdist_pb_evaluation.sh
misc/maxsat/toysat/README.md
misc/maxsat/toysat/toysat
misc/maxsat/toysat_ls/README.md
Expand Down

0 comments on commit 24b3b9e

Please sign in to comment.