summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2010-12-23 12:40:04 +0000
committerhallgren <hallgren@chalmers.se>2010-12-23 12:40:04 +0000
commit37dc9fac42c5851d8d3b90410e586d36b67d0ad4 (patch)
treea7dea993f783fb8718c07c5ef5a53bb64fad3569
parent231ce72bb476b46c0656f2e237e5408f05df1cfb (diff)
build-binary-dsit.sh: make paths relative to /usr/local in the final tar file.
-rw-r--r--build-binary-dist.sh7
1 files 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