#!/bin/bash -e #--------------------------------------------------------------------- # explanation #--------------------------------------------------------------------- 1. The Laclin source tarball "src-cabal3400.base.tgz" was created us- ing this script. This script requires both Internet access and a compatible setup at one or more Haskell-related website[s]. It probably won't work in the future. #--------------------------------------------------------------------- 2. Requirements: 2.1. Get a copy of "cabal" 2.4.0.0 built. Name the executable as fol- lows and make sure that it's accessible by PATH: cabal2400 #--------------------------------------------------------------------- 2.2. Additional dependencies (not a complete list): Laclin "srcpkgpaths" in Laclin actools bash fontconfig freetype2 gawk ghc-8.6.5 grep lapack libffi libgmp libicu libpng ncurses numactl sdl2 sed tar zlib #--------------------------------------------------------------------- # main program #--------------------------------------------------------------------- . srcpkgpaths fontconfig freetype2 lapack libgmp libpng xorg TMPDIR=/tmp/moocow mkdir -p $TMPDIR || exit 1 rm -fr $TMPDIR || exit 1 mkdir $TMPDIR || exit 1 export HOME=$TMPDIR || exit 1 cd $HOME || exit 1 touch STARTED rm -fr .cabal || exit 1 mkdir -p .cabal/bin $HOME/tmp || exit 1 cabal2400 update || exit 1 cabal2400 \ --bindir=$HOME/.cabal/bin \ --symlink-bindir=$HOME/tmp \ install cabal-install-3.4.0.0 || exit 1 PATH=$HOME/.cabal/bin:$PATH || exit 1 hash cabal || exit 1 which cabal || exit 1 cabal --version || exit 1 cd .cabal || exit 1 rm -fr bin/* lib/* logs/* share/* store/* || exit 1 sed -e 's@/.*\/.cabal@MOOCOW/.cabal@g' \ -e s@MOOCOW@$PRODTREE/ghc0865/home@g \ -i config cd .. tar zcf source-cabal3400.tgz .cabal || exit 1 ls -l `pwd`/*.tgz || exit 1 touch FINISHED #--------------------------------------------------------------------- # End of file.