git.iko.soy/typeable/pandoc
on master help sign in
Really fix cabal version detection.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@43 788f1e2b-df1e-0410-8736-df70ead52e1b

commitbbae8ad31fd4ddafc766636716e61c889030191e authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 30 Oct 2006, 08:18 (20 years ago) parent0bd395c
1 file changed+2−2
cabalize+2−2
cabalize+2−2
@@ -28,10 +28,10 @@ case "$ghc_version" in
2828esac
2929BUILD_DEPENDS=$(echo $BUILD_DEPENDS | sed -e 's# #, #g')
3030
31−# Handle 'Hs-Source-Dir' option name which was deprecated in Cabal 1.1.4.
31+# Handle 'Hs-Source-Dir' option name which was deprecated in Cabal > 1.1.3.
3232HS_SOURCE_DIRS='Hs-Source-Dirs'
3333cabal_version=$(ghc-pkg -l | sed -ne 's/.*\<[Cc]abal-\([^,]*\).*/\1/p')
34−if printf "$cabal_version\n1.1.4" | sort | tail -n 1 | grep -q '1\.1\.4'; then
34+if printf "$cabal_version\n1.1.3" | sort | tail -n 1 | grep -q '1\.1\.3'; then
3535 HS_SOURCE_DIRS='Hs-Source-Dir'
3636fi
3737