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