summaryrefslogtreecommitdiff
path: root/dh_haskell_depends
diff options
context:
space:
mode:
Diffstat (limited to 'dh_haskell_depends')
-rw-r--r--dh_haskell_depends62
1 files changed, 31 insertions, 31 deletions
diff --git a/dh_haskell_depends b/dh_haskell_depends
index fc240de..970ee01 100644
--- a/dh_haskell_depends
+++ b/dh_haskell_depends
@@ -67,25 +67,25 @@ for pkg in `dh_listpackages $args`; do
ext=`package_ext ${pkg}`
case "$hc,$ext" in
- ghc,dev|ghc,prof|ghcjs,dev|ghcjs,prof)
- if [ -z "$files" ] ; then
- cfiles=`find_config_for_ghc $pkg`
- else
- cfiles="$files"
- fi
- if [ -z "$cfiles" ] ; then
- echo "dh_haskell_depends - no installed package description files found" >&2
- exit 1
- fi
- case "$ext" in
- dev)
- grep -v -a \
- -e ^haskell:Extra-Depends \
+ ghc,dev|ghc,prof|ghcjs,dev|ghcjs,prof)
+ if [ -z "$files" ] ; then
+ cfiles=`find_config_for_ghc $pkg`
+ else
+ cfiles="$files"
+ fi
+ if [ -z "$cfiles" ] ; then
+ echo "dh_haskell_depends - no installed package description files found" >&2
+ exit 1
+ fi
+ case "$ext" in
+ dev)
+ grep -v -a \
+ -e ^haskell:Extra-Depends \
-e ^haskell:Depends \
-e ^haskell:Recommends \
-e ^haskell:Suggests \
$sfile > $sfile.tmp || true
- echo "haskell:Depends=`depends_for_ghc ${hc} $cfiles`" >> $sfile.tmp
+ echo "haskell:Depends=`depends_for_ghc ${hc} $cfiles`" >> $sfile.tmp
echo "haskell:Recommends=" >> $sfile.tmp
doc=`echo $pkg | sed -e 's/-dev$/-doc/'`
prof=`echo $pkg | sed -e 's/-dev$/-prof/'`
@@ -99,10 +99,10 @@ for pkg in `dh_listpackages $args`; do
|| suggests="$suggests, $prof"
fi
echo "haskell:Suggests=$suggests" >> $sfile.tmp
- ;;
- prof)
- grep -a -v \
- -e ^haskell:Extra-Depends \
+ ;;
+ prof)
+ grep -a -v \
+ -e ^haskell:Extra-Depends \
-e ^haskell:Depends \
-e ^haskell:Recommends \
-e ^haskell:Suggests \
@@ -110,31 +110,31 @@ for pkg in `dh_listpackages $args`; do
dev=`echo $pkg | sed -e 's/-prof$/-dev/'`
version='(=${binary:Version})'
depends="$dev ${version}, `depends_for_ghc_prof ${hc} $cfiles`"
- echo "haskell:Depends=$depends" >> $sfile.tmp
+ echo "haskell:Depends=$depends" >> $sfile.tmp
echo "haskell:Recommends=" >> $sfile.tmp
echo "haskell:Suggests=" >> $sfile.tmp
- ;;
- esac
- ;;
- hugs,*)
- grep -a -v \
+ ;;
+ esac
+ ;;
+ hugs,*)
+ grep -a -v \
-e ^haskell:Extra-Depends \
-e ^haskell:Depends \
-e ^haskell:Recommends \
-e ^haskell:Suggests \
$sfile > $sfile.tmp || true
- echo "haskell:Depends=`depends_for_hugs`" >> $sfile.tmp
+ echo "haskell:Depends=`depends_for_hugs`" >> $sfile.tmp
echo "haskell:Recommends=" >> $sfile.tmp
echo "haskell:Suggests=" >> $sfile.tmp
- ;;
+ ;;
ghc,doc|ghcjs,doc)
- grep -a -v \
+ grep -a -v \
-e ^haskell:Extra-Depends \
-e ^haskell:Depends \
-e ^haskell:Recommends \
-e ^haskell:Suggests \
$sfile > $sfile.tmp || true
- depends=haddock-interface-`haddock --interface-version`
+ depends=haddock-interface-`haddock --interface-version`
echo "haskell:Depends=$depends" >> $sfile.tmp
recommends=` \
find debian/$pkg -name \*.html -exec hxwls -r \{\} \; \
@@ -153,9 +153,9 @@ for pkg in `dh_listpackages $args`; do
echo "haskell:Recommends=$recommends" >> $sfile.tmp
echo "haskell:Suggests=$suggests" >> $sfile.tmp
;;
- *)
+ *)
cp $sfile $sfile.tmp
- ;;
+ ;;
esac
echo "haskell:Extra-Depends=`cat debian/extra-depends-${hc}`" >> $sfile.tmp