|
|
|
@ -18,6 +18,8 @@ case $MODE in
|
|
|
|
|
*) echo "`basename $0`: Need --provides or --requires" ; exit 1
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
SHARED=$(find $PKGBASEDIR -type f -name '*.so')
|
|
|
|
|
|
|
|
|
|
GHCVERSION=$(ghc --numeric-version)
|
|
|
|
|
|
|
|
|
|
files=$(cat)
|
|
|
|
@ -33,7 +35,11 @@ for i in $files; do
|
|
|
|
|
case $LIB_FILE in
|
|
|
|
|
*.so) META=ghc ;;
|
|
|
|
|
*_p.a) META=ghc-prof SELF=ghc-devel ;;
|
|
|
|
|
*.a) META=ghc-devel SELF=ghc ;;
|
|
|
|
|
*.a) META=ghc-devel
|
|
|
|
|
if [ -n "$SHARED" ]; then
|
|
|
|
|
SELF=ghc
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
if [ -n "$META" ]; then
|
|
|
|
|
PKGVER=$(echo $LIB_FILE | sed -e "s%$PKGBASEDIR/\([^/]\+\)/libHS.*%\1%")
|
|
|
|
|