@@ -1,27 +1,17 @@
1−#!/usr/bin/env sh
1+#!/bin/sh
2−echo "==========================================="
3−echo "= Building and installing 'uuid-types'... ="
4−echo "==========================================="
6−# We install here because "uuid" is going to need it.
3+cd $1
8− cabal configure --enable-tests && \
11− cabal install) || exit 1
13−echo "========================================="
14−echo "= Installing dependencies for 'uuid'... ="
15−echo "========================================="
18− cabal install --dependencies-only --enable-tests) || exit 1
20−echo "======================"
21−echo "= Building 'uuid'... ="
22−echo "======================"
25− cabal configure --enable-tests && \
5+cabal configure --enable-tests --enable-benchmarks -v2
26− cabal build && \
6+cabal build
27− cabal test) || exit 1
7+cabal test
10+export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
12+if [ -f "$SRC_TGZ" ]; then
13+ cabal install --force-reinstalls "$SRC_TGZ";
15+ echo "expected '$SRC_TGZ' not found";