diff --git a/build-binary-dist.sh b/build-binary-dist.sh index 64494eb03..2c014f57c 100644 --- a/build-binary-dist.sh +++ b/build-binary-dist.sh @@ -5,6 +5,7 @@ ### the Haskell Platform, version 2010.1.0.0 or 2010.2.0.0 destdir=/tmp/gf-build-binary-dist # assemble binary dist here +prefix=/usr/local # where to install targz=gf-bin.tar.gz # the final tar file, should be renamed langs="" # which languages? #langs="langs=-Pol" # temporary problem with Polish, omit it @@ -14,7 +15,7 @@ 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 configure --user --prefix $prefix runhaskell Setup.hs build $langs runhaskell Setup.hs copy --destdir=$destdir $langs @@ -25,10 +26,10 @@ cd src/server ## the easiest way to install them: #cabal install -runhaskell Setup.hs configure --user --prefix /usr/local +runhaskell Setup.hs configure --user --prefix $prefix runhaskell Setup.hs build runhaskell Setup.hs copy --destdir=$destdir ) -tar -C $destdir -zcf $targz . +tar -C $destdir/$prefix -zcf $targz . echo "Created $targz, rename it to something more informative" rm -r $destdir