From 37dc9fac42c5851d8d3b90410e586d36b67d0ad4 Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 23 Dec 2010 12:40:04 +0000 Subject: [PATCH] build-binary-dsit.sh: make paths relative to /usr/local in the final tar file. --- build-binary-dist.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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