libiserv: Generate cabal file with autoconf
authorBen Gamari <ben@smart-cactus.org>
Tue, 6 Nov 2018 15:33:01 +0000 (10:33 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 6 Nov 2018 15:33:01 +0000 (10:33 -0500)
Previously the version number was set by hand. This seems like
unnecessary busywork for what is mostly an internal library.

configure.ac
libraries/libiserv/libiserv.cabal.in [moved from libraries/libiserv/libiserv.cabal with 97% similarity]

index 2556561..f305ca9 100644 (file)
@@ -1334,7 +1334,7 @@ checkMake380() {
 checkMake380 make
 checkMake380 gmake
 
-AC_CONFIG_FILES([mk/config.mk mk/install.mk mk/project.mk rts/rts.cabal compiler/ghc.cabal ghc/ghc-bin.cabal utils/runghc/runghc.cabal utils/gen-dll/gen-dll.cabal libraries/ghc-boot/ghc-boot.cabal libraries/ghc-boot-th/ghc-boot-th.cabal libraries/ghci/ghci.cabal libraries/ghc-heap/ghc-heap.cabal settings docs/users_guide/ghc_config.py docs/index.html libraries/prologue.txt distrib/configure.ac])
+AC_CONFIG_FILES([mk/config.mk mk/install.mk mk/project.mk rts/rts.cabal compiler/ghc.cabal ghc/ghc-bin.cabal utils/runghc/runghc.cabal utils/gen-dll/gen-dll.cabal libraries/ghc-boot/ghc-boot.cabal libraries/ghc-boot-th/ghc-boot-th.cabal libraries/ghci/ghci.cabal libraries/ghc-heap/ghc-heap.cabal libraries/libiserv/libiserv.cabal settings docs/users_guide/ghc_config.py docs/index.html libraries/prologue.txt distrib/configure.ac])
 AC_OUTPUT
 [
 if test "$print_make_warning" = "true"; then
similarity index 97%
rename from libraries/libiserv/libiserv.cabal
rename to libraries/libiserv/libiserv.cabal.in
index fc0a022..84471a2 100644 (file)
@@ -1,5 +1,5 @@
 Name: libiserv
-Version: 8.6.1
+Version: @ProjectVersionMunged@
 Copyright: XXX
 License: BSD3
 License-File: LICENSE